Platform SDK: DirectX

DirectX7.QuaternionRotation

The DirectX7.QuaternionRotation method retrieves a unit quaternion that represents a rotation of a specified number of radians around the given axis.

object.QuaternionRotatation(quat As D3DRMQUATERNION, _
    axis As D3DVECTOR, _
    theta As Single)

Parameters

object
Object expression that resolves to a DirectX7 object.
quat
A D3DRMQUATERNION type that will contain the result of the operation.
axis
A D3DVECTOR type specifying the axis of rotation.
theta
Number of radians to rotate around the axis specified by the axis parameter.

Error Codes

If the method fails, an error is raised and Err.Number is set.