Bagikan melalui


Quaternion.Lerp Method (Quaternion, Quaternion, Single)

Linearly interpolates between two quaternions.

Syntax

'Declaration
Public Shared Function Lerp ( _
         quaternion1 As Quaternion, _
         quaternion2 As Quaternion, _
         amount As Single _
) As Quaternion 
public static Quaternion Lerp (
         Quaternion quaternion1,
         Quaternion quaternion2,
         float amount
)
public:
static Quaternion Lerp(
         Quaternion quaternion1,
         Quaternion quaternion2,
         float amount
)

Parameters

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

Return Value

Type: Quaternion
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