OxMAxisAngle Class
An axis-angle represents a 3D rotation using a rotation axis and the angle in radians around that axis. Axis-angle rotations are useful when using APIs that don't support quaternions directly (OpenGL for example) but in general, it's better to use the OxMQuaternion class for all rotations, and only convert to axis-angle representation as a final step.
Constructors
Expand All | Collapse All
-
OxMAxisAngle
Default constructor, sets the rotation to zero degrees around the +Y axis. -
OxMAxisAngle ( vx As Double, vy As Double, vz As Double, ang As Double )
Set the rotation axis using three Double values, and the angle using a fourth Double. -
OxMAxisAngle ( axisang As OxMAxisAngle )
Set the rotation axis and angle to copies of the passed axis-angle. -
OxMAxisAngle ( quat As OxMQuaternion )
Set the rotation axis and angle to the rotation described by a quaternion. -
OxMAxisAngle ( v As OxMVector3, ang As Double )
Set the rotation axis using a 3D vector and the angle using a double.
Properties
Methods
Expand All | Collapse All
-
Copy ( axisang As OxMAxisAngle )
Set the rotation axis and angle to copies of the passed axis-angle. -
Normalize
Normalizes the axis vector (sets the length to 1.0). -
SetRotate ( vx As Double, vy As Double, vz As Double, ang As Double )
Set the rotation axis using three double values, and the angle using a fourth double. -
SetRotate ( quat As OxMQuaternion )
Set the rotation axis and angle to the rotation described by a quaternion. -
SetRotate ( v As OxMVector3, ang As Double )
Set the rotation axis using a 3D vector and the angle using a double. -
SetRotateInverse ( quat As OxMQuaternion )
Set the rotation axis and angle to the rotation described by the passed quaternion and inverts the axis components. -
SetRotateInverse ( v As OxMVector3, ang As Double )
Set the rotation axis to the inverse of a 3D vector and the angle using a double. -
ToEuler As OxMVector3
Converts the axis-angle to a Euler rotation vector. Note: This conversion is not very efficient and not recommended for general use.