Bagikan melalui


Quaternion.Slerp Method (Quaternion, Quaternion, Single, Quaternion)

Interpolates between two quaternions, using spherical linear interpolation.

Syntax

'Declaration
Public Shared Sub Slerp ( _
         ref quaternion1 As Quaternion, _
         ref quaternion2 As Quaternion, _
         amount As Single, _
         out result As Quaternion _
)
public static void Slerp (
         ref Quaternion quaternion1,
         ref Quaternion quaternion2,
         float amount,
         out Quaternion result
)
public:
static void Slerp(
         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 that indicates how far to interpolate between the quaternions.
  • result
    Type: Quaternion
    [OutAttribute] Result of the interpolation.

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