Share via


Quaternion.Exp() Method (Microsoft.DirectX)

Calculates the exponential.

Definition

Visual Basic Public Sub Exp()
C# public void Exp();
C++ public:
void Exp();
JScript public function Exp();

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.