Microsoft DirectX 9.0 SDK Update (October 2004)

Quaternion.Exp Method

Language:

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

Calculates the exponential.

Definition

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

Parameters

q Microsoft.DirectX.Quaternion. Source Quaternion structure.

Return Value

Microsoft.DirectX.Quaternion . The Quaternion structure that is the exponential of the q parameter.

Remarks

The Exp method converts a pure quaternion to a unit quaternion. The method expects a pure quaternion, where w is ignored in the calculation (w == 0). In the following example, v represents the vector portion of a quaternion.

Given a pure quaternion defined by:
q = (0, theta * v); 

This method calculates the exponential result.
exp(Q) = (cos(theta), sin(theta) * v)

The SquadSetup method also can be used to set up the control points of a quaternion.


© 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