I have drawn cube using c++. I need to rotate around the axis in clockwise rotation.I found the method for rotation only for anti clockwise in the net.I need to calculate new points for the cube after rotation.is there any formula to calculate the new point?
Share
If you know the formula to rotate anti-clockwise then it should be pretty simple to rotate clockwise. If anticlock rotation is positive, then you just need to put negative theta in the equations to rotate clockwise.
For example, if anticlockwise rotation equation is:
Then clockwise rotation formula will be:
Using
cos (-t) = cos tandsin (-t) = -sin t