Quaternion::SetRotationAboutAxis
Defined in: C4Quaternion.h
Sets a quaternion to represent a rotation about a given axis.
Prototype
Quaternion& SetRotationAboutAxis(float angle, const Vector3D& axis);
Parameters
angle |
The angle of rotation, in radians.
|
axis |
The axis about which to rotate. This vector should have unit length.
|
Description
The SetRotationAboutAxis function replaces the components of a quaternion with those representing the rotation about the axis given by the axis parameter through the angle given by the angle parameter. The resulting quaternion has unit length.
See Also
Quaternion::SetRotationAboutX
Quaternion::SetRotationAboutY
Quaternion::SetRotationAboutZ
Quaternion::GetRotationMatrix
|