Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX SDK
Namespaces
Microsoft.DirectX
Structures
Matrix
Methods
 Matrix.RotationAxis Method

  Switch on low bandwidth view
Language: Visual BasicC#C++JScript(Show All)
Matrix.RotationAxis(Vector3,Single) Method (Microsoft.DirectX)

Builds a matrix that rotates around an arbitrary axis.

Definition

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

Parameters

axisRotation Microsoft.DirectX.Vector3
A Vector3 structure that identifies the axis about which to rotate the matrix.
angle System.Single
Angle of rotation, in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

Return Value

Microsoft.DirectX.Matrix
Rotated Matrix structure.

Remarks

The input rotation angle is in radians.

See Also

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker