Partilhar via


Quaternion.Lerp Method (Quaternion, Quaternion, Single, Quaternion)

Linearly interpolates between two quaternions.

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

Syntax

public static void Lerp (
         ref Quaternion quaternion1,
         ref Quaternion quaternion2,
         float amount,
         out Quaternion result
)

Parameters

  • quaternion1
    Source quaternion.
  • quaternion2
    Source quaternion.
  • amount
    Value indicating how far to interpolate between the quaternions.
  • result
    [OutAttribute] The resulting quaternion.

See Also

Reference

Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista