I'm trying to perform simple trigonometric operation and I notice a drift in the result.
The code below is expected to make a point to rotate around a center of rotation. Instead of roration on a circle path, it is doing a spiral path. I think it is due to a precision problem.
If you change the "theta" value to 360, the rotation is stable, but alway at the same place. Everything is fine.
Same thing if you put "180".
The program react weirdly if you put 90.
If you set "theta" to 10 degres for example, the point turn on a spiral instead of a cricle.
We see that the radius, between the center of rotation and the point itself, is not constant.