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

定義

使用球面線性插補,在兩個四元數間進行插補。Interpolates between two quaternions, using spherical linear interpolation.

public:
 static System::Numerics::Quaternion Slerp(System::Numerics::Quaternion quaternion1, System::Numerics::Quaternion quaternion2, float amount);
public static System.Numerics.Quaternion Slerp (System.Numerics.Quaternion quaternion1, System.Numerics.Quaternion quaternion2, float amount);
static member Slerp : System.Numerics.Quaternion * System.Numerics.Quaternion * single -> System.Numerics.Quaternion
Public Shared Function Slerp (quaternion1 As Quaternion, quaternion2 As Quaternion, amount As Single) As Quaternion

參數

quaternion1
Quaternion Quaternion Quaternion Quaternion

第一個四元數。The first quaternion.

quaternion2
Quaternion Quaternion Quaternion Quaternion

第二個四元數。The second quaternion.

amount
Single Single Single Single

在插補中第二個四元數的相對加權。The relative weight of the second quaternion in the interpolation.

傳回

插補的四元數。The interpolated quaternion.

適用於