Vector3.Lerp(Vector3, Vector3, Single) Vector3.Lerp(Vector3, Vector3, Single) Vector3.Lerp(Vector3, Vector3, Single) Vector3.Lerp(Vector3, Vector3, Single) Method

Definition

Führt eine lineare Interpolation zwischen beiden Vektoren aus, basierend auf der angegebenen Gewichtung.Performs a linear interpolation between two vectors based on the given weighting.

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 Vector3 Vector3 Vector3

Der erste Vektor.The first vector.

value2
Vector3 Vector3 Vector3 Vector3

Der zweite Vektor.The second vector.

amount
Single Single Single Single

Ein Wert zwischen 0 und 1, der die Gewichtung von value2 angibt.A value between 0 and 1 that indicates the weight of value2.

Gibt zurück

Der interpolierte Vektor.The interpolated vector.

Gilt für: