Vector4.Lerp(Vector4, Vector4, Single) Vector4.Lerp(Vector4, Vector4, Single) Vector4.Lerp(Vector4, Vector4, Single) Vector4.Lerp(Vector4, Vector4, Single) Method

Definizione

Esegue un'interpolazione lineare tra due vettori in base al peso specificato.Performs a linear interpolation between two vectors based on the given weighting.

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

Parametri

value1
Vector4 Vector4 Vector4 Vector4

Primo vettore.The first vector.

value2
Vector4 Vector4 Vector4 Vector4

Secondo vettore.The second vector.

amount
Single Single Single Single

Valore compreso tra 0 e 1 che indica il peso di value2.A value between 0 and 1 that indicates the weight of value2.

Restituisce

Vettore interpolato.The interpolated vector.

Si applica a