UnsafeNativeMethods.Quaternion.Invert Method |
Language: |
Conjugates and re-normalizes a quaternion.
Visual Basic Public Shared Function Invert( _
ByVal pOut As Quaternion, _
ByVal pQuat As Quaternion _
) As QuaternionC# public static Quaternion Invert(
Quaternion pOut,
Quaternion pQuat
);C++ public:
static Quaternion Invert(
Quaternion pOut,
Quaternion pQuat
);JScript public static function Invert(
pOut : Quaternion,
pQuat : Quaternion
) : Quaternion;
pOut Microsoft.DirectX.Quaternion
A Quaternion structure that is the inverse of the quaternion passed into the pQuat parameter.pQuat Microsoft.DirectX.Quaternion
Source Quaternion structure.
Microsoft.DirectX.Quaternion
A Quaternion structure that is the inverse of the quaternion passed into the pQuat 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)The return value for this method is the same value returned in the pOut parameter. This allows you to use the Invert method as a parameter for another method.
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