Orientation2D and Orientation3D

Top  Previous  Next

The Orientation2D and Orientation3D classes allow 2D and 3D orientations to easily be kept track of and updated according to rotational velocity and rotational acceleration.  The Orientation2D class uses a float in radians to keep track of the 2D rotation.  The Orientation3D class uses a Quaternion to keep track of the 3D orientation.  Both classes also provide static functions to perform 2D and 3D rotations, even if you do not use any instances of the Orientation2D and Orientation3D classes themselves.  These classes are very useful for rotating particles, especially when rotating in 3D.

 

For specific information on the class functions and properties see the DPSF API Documentation and the tutorial on using position, orientation, and pivot points.