Bagikan melalui


Vector3.Lerp Metode

Definisi

Overload

Lerp(Vector3, Vector3, Single)

Melakukan interpolasi linier antara dua vektor berdasarkan pembobotan yang diberikan.

Lerp(Vector3, Vector3, Vector3)

Lerp(Vector3, Vector3, Single)

Sumber:
Vector3.cs
Sumber:
Vector3.cs
Sumber:
Vector3.cs

Melakukan interpolasi linier antara dua vektor berdasarkan pembobotan yang diberikan.

public:
 static System::Numerics::Vector3 Lerp(System::Numerics::Vector3 value1, System::Numerics::Vector3 value2, float amount);
public static System.Numerics.Vector3 Lerp (System.Numerics.Vector3 value1, System.Numerics.Vector3 value2, float amount);
static member Lerp : System.Numerics.Vector3 * System.Numerics.Vector3 * single -> System.Numerics.Vector3
Public Shared Function Lerp (value1 As Vector3, value2 As Vector3, amount As Single) As Vector3

Parameter

value1
Vector3

Vektor pertama.

value2
Vector3

Vektor kedua.

amount
Single

Nilai antara 0 dan 1 yang menunjukkan berat value2.

Mengembalikan

Vektor terinterpolasi.

Berlaku untuk

Lerp(Vector3, Vector3, Vector3)

public:
 static System::Numerics::Vector3 Lerp(System::Numerics::Vector3 value1, System::Numerics::Vector3 value2, System::Numerics::Vector3 amount);
public static System.Numerics.Vector3 Lerp (System.Numerics.Vector3 value1, System.Numerics.Vector3 value2, System.Numerics.Vector3 amount);
static member Lerp : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Vector3
Public Shared Function Lerp (value1 As Vector3, value2 As Vector3, amount As Vector3) As Vector3

Parameter

value1
Vector3
value2
Vector3
amount
Vector3

Mengembalikan

Berlaku untuk