Bagikan melalui


Quaternion.Slerp(Quaternion, Quaternion, Single) Metode

Definisi

Menginterpolasi antara dua kuaternion, menggunakan interpolasi linier bola.

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

Parameter

quaternion1
Quaternion

Kuaternion pertama.

quaternion2
Quaternion

Quaternion kedua.

amount
Single

Bobot relatif kuaternion kedua dalam interpolasi.

Mengembalikan

Kuaternion terinterpolasi.

Berlaku untuk