Microsoft DirectX 9.0 SDK Update (October 2004)

Quaternion.Slerp Method

Language:

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

Interpolates between two quaternions, using spherical linear interpolation.

Definition

Visual Basic .NET Public Shared Function Slerp( _
    ByVal q1 As Quaternion, _
    ByVal q2 As Quaternion, _
    ByVal t As Single _
) As Quaternion
C# public static Quaternion Slerp(
    Quaternion q1,
    Quaternion q2,
    float t
);
Managed C++ public: static Quaternion Slerp(
    Quaternion q1,
    Quaternion q2,
    float t
);
JScript .NET public static function Slerp(
    q1 : Quaternion,
    q2 : Quaternion,
    t : float
) : Quaternion;

Parameters

q1 Microsoft.DirectX.Quaternion. Source Quaternion structure.
q2 Microsoft.DirectX.Quaternion. Source Quaternion structure.
t System.Single. A Single Leave Site value that indicates how far to interpolate between the quaternions.

Return Value

Microsoft.DirectX.Quaternion . A Quaternion structure that is the result of the interpolation.


© 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