AIM:
To implement 3D transformation of Rotation.
ALGORITHM:
1. Give the specification for the rotation axis and the rotation angle accomplish the required rotation in five steps.
2. Translate the object so that the rotation axis passes through the coordinate origin.
3. Rotate the object so that the axis of rotation coincides with one of the coordinate axis.
4. Perform the specified rotations above that coordinate axis.
5. Apply the inverse translation to bring the rotation axis back to the original rotation.
SOURCE CODE:
#include
#include
#include
#include
No comments:
Post a Comment