D3DRMQuaternionFromRotation

Retrieves a unit quaternion that represents a rotation of a specified number of radians around the given axis.

LPD3DRMQUATERNION D3DRMQuaternionFromRotation(
LPD3DRMQUATERNION lpquat,
LPD3DVECTOR lpv,
D3DVALUE theta
);

Parameters

lpquat

Address of a D3DRMQUATERNION structure that will contain the result of the operation.

lpv

Address of a D3DVECTOR structure specifying the axis of rotation.

theta

Number of radians to rotate around the axis specified by the lpv parameter.

Return Values

Returns the address of the unit quaternion that was passed as the first parameter if successful, or zero otherwise.