Quaternion.Lerp Method (Quaternion, Quaternion, Single)

Linearly interpolates between two quaternions.

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

Syntax

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

Parameters

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

Return Value

The resulting quaternion.

See Also

Reference

Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista