Quaternion::MakeRotation
Defined in:
Returns a quaternion that represents a rotation about a given axis.
TSQuaternion.h
Prototype
static Quaternion MakeRotation(float angle, const Bivector3D& axis);
Parameters
angle |
The angle of rotation, in radians. |
axis |
The axis about which to rotate. This bivector must have unit magnitude. |
Description
The MakeRotation
function returns a quaternion representing a rotation through the angle given by the angle
parameter about the axis given by the axis
parameter. The resulting quaternion has unit length.
See Also