Microsoft DirectX 9.0 SDK Update (October 2004)

UnsafeNativeMethods.Matrix.RotationAxis Method

Language:

Note: This documentation is preliminary and is subject to change.

Builds a matrix that rotates around an arbitrary axis.

Note: For programming in Microsoft® Visual Basic® .NET or Microsoft® JScript® .NET, use the equivalent method in the Microsoft.DirectX structures.

Definition

Visual Basic .NET Public Shared Function RotationAxis( _
    ByVal pOut As Matrix, _
    ByVal axisRotation As Vector3, _
    ByVal angle As Single _
) As Matrix
C# public static Matrix RotationAxis(
    Matrix pOut,
    Vector3 axisRotation,
    float angle
);
Managed C++ public: static Matrix RotationAxis(
    Matrix pOut,
    Vector3 axisRotation,
    float angle
);
JScript .NET public static function RotationAxis(
    pOut : Matrix,
    axisRotation : Vector3,
    angle : float
) : Matrix;

Parameters

pOut Microsoft.DirectX.Matrix. Rotated Matrix structure.
axisRotation Microsoft.DirectX.Vector3. A Vector3 structure that identifies the axis about which to rotate the matrix.
angle System.Single.

Return Value

Microsoft.DirectX.Matrix . Rotated Matrix structure.

Remarks

The input rotation angle is in radians.

The return value for this method is the same value returned in the pOut parameter. Resultantly, the RotationAxis method can be used as a parameter for another method.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center