![]() |
![]() |
![]() |
UnsafeNativeMethods.Quaternion.RotationAxis Method |
Language: |
Builds a quaternion that is rotated around an arbitrary axis.
Visual Basic .NET Public Shared Function RotationAxis( _
ByVal pOut As Quaternion, _
ByVal pAxis As Vector3, _
ByVal angle As Single _
) As QuaternionC# public static Quaternion RotationAxis(
Quaternion pOut,
Vector3 pAxis,
float angle
);Managed C++ public: static Quaternion RotationAxis(
Quaternion pOut,
Vector3 pAxis,
float angle
);JScript .NET public static function RotationAxis(
pOut : Quaternion,
pAxis : Vector3,
angle : float
) : Quaternion;
pOut Microsoft.DirectX.Quaternion. A Quaternion structure that is rotated around the specified axis. pAxis Microsoft.DirectX.Vector3. A Vector3 structure that identifies the axis about which to rotate the quaternion. angle System.Single. Angle of rotation, in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.
Microsoft.DirectX.Quaternion . A Quaternion structure that is rotated around the specified axis.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center