Share via


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

Linearly interpolates between two quaternions.

Syntax

'Declaration
Public Shared Sub Lerp ( _
         ref quaternion1 As Quaternion, _
         ref quaternion2 As Quaternion, _
         amount As Single, _
         out result As Quaternion _
)
public static void Lerp (
         ref Quaternion quaternion1,
         ref Quaternion quaternion2,
         float amount,
         out Quaternion result
)
public:
static void Lerp(
         ref Quaternion quaternion1,
         ref Quaternion quaternion2,
         float amount,
         out Quaternion result
)

Parameters

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

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Quaternion Structure
Quaternion Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone