Share via


Quaternion.Slerp Method (Quaternion, Quaternion, Single)

Interpolates between two quaternions, using spherical linear interpolation.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public static Quaternion Slerp (
         Quaternion quaternion1,
         Quaternion quaternion2,
         float amount
)

Parameters

  • quaternion1
    Source quaternion.
  • quaternion2
    Source quaternion.
  • amount
    Value that indicates how far to interpolate between the quaternions.

Return Value

Result of the interpolation.

See Also

Reference

Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista