Bagikan melalui


Quaternion.Lerp(Quaternion, Quaternion, Single) Metode

Definisi

Melakukan interpolasi linier antara dua kuaternion berdasarkan nilai yang menentukan pembobotan kuaternion kedua.

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

Parameter

quaternion1
Quaternion

Kuaternion pertama.

quaternion2
Quaternion

Quaternion kedua.

amount
Single

Berat quaternion2 relatif dalam interpolasi.

Mengembalikan

Kuaternion terinterpolasi.

Berlaku untuk