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

定義

根據指定第二個四元數之加權的值,執行兩個四元數之間的線性插補。Performs a linear interpolation between two quaternions based on a value that specifies the weighting of the second quaternion.

public:
 static System::Numerics::Quaternion Lerp(System::Numerics::Quaternion quaternion1, System::Numerics::Quaternion quaternion2, float amount);
public static System.Numerics.Quaternion Lerp (System.Numerics.Quaternion quaternion1, System.Numerics.Quaternion quaternion2, float amount);
static member Lerp : System.Numerics.Quaternion * System.Numerics.Quaternion * single -> System.Numerics.Quaternion
Public Shared Function Lerp (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

在插補中 quaternion2 的相對加權。The relative weight of quaternion2 in the interpolation.

傳回

插補的四元數。The interpolated quaternion.

適用於