Platform SDK: DirectX

DirectX7.MatrixFromQuaternion

The DirectX7.MatrixFromQuaternion method calculates the matrix for the rotation that a unit quaternion represents.

object.MatrixFromQuaternion(matrix As D3DMATRIX, _
    quat As D3DRMQUATERNION)

Parameters

object
Object expression that resolves to a DirectX7 object.
matrix
The calculated matrix when the function returns.
quat
The D3DRMQUATERNION type.

Error Codes

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