Quaternion.Invert Method |
Language: |
Conjugates and re-normalizes a quaternion.
Visual Basic Public Shared Function Invert( _
ByVal q As Quaternion _
) As QuaternionC# public static Quaternion Invert(
Quaternion q
);C++ public:
static Quaternion Invert(
Quaternion q
);JScript public static function Invert(
q : Quaternion
) : Quaternion;
q Microsoft.DirectX.Quaternion
Source Quaternion structure.
Microsoft.DirectX.Quaternion
A Quaternion structure that is the inverse of the quaternion passed into the q parameter.
A unit quaternion is defined by the following equation.
q == (cos(theta), sin(theta) * v) where |v| = 1 The natural logarithm of q is ln(q) = (0, theta * v)
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center