C4 Engine
C4 Engine API Documentation

Quaternion::MakeRotation

Defined in:  TSQuaternion.h
Returns a quaternion that represents a rotation about a given axis.
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

Quaternion::MakeRotationX

Quaternion::MakeRotationY

Quaternion::MakeRotationZ

Quaternion::GetRotationMatrix