Microsoft DirectX 9.0 SDK Update (October 2004)

Quaternion.Invert Method

Language:

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

Conjugates and re-normalizes a quaternion.

Definition

Visual Basic .NET Public Shared Function Invert( _
    ByVal q As Quaternion _
) As Quaternion
C# public static Quaternion Invert(
    Quaternion q
);
Managed C++ public: static Quaternion Invert(
    Quaternion q
);
JScript .NET public static function Invert(
    q : Quaternion
) : Quaternion;

Parameters

q Microsoft.DirectX.Quaternion. Source Quaternion structure.

Return Value

Microsoft.DirectX.Quaternion . A Quaternion structure that is the inverse of the quaternion passed into the q parameter.

Remarks

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)

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