Sdílet prostřednictvím


Vector3.Lerp Metoda

Definice

Přetížení

Lerp(Vector3, Vector3, Single)

Provede lineární interpolaci mezi dvěma vektory na základě dané váhy.

Lerp(Vector3, Vector3, Vector3)

Lerp(Vector3, Vector3, Single)

Zdroj:
Vector3.cs
Zdroj:
Vector3.cs
Zdroj:
Vector3.cs

Provede lineární interpolaci mezi dvěma vektory na základě dané váhy.

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

Parametry

value1
Vector3

První vektor.

value2
Vector3

Druhý vektor.

amount
Single

Hodnota mezi 0 a 1, která označuje váhu hodnoty value2.

Návraty

Interpolovaný vektor.

Platí pro

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

Parametry

value1
Vector3
value2
Vector3
amount
Vector3

Návraty

Platí pro