NFloat.Lerp(NFloat, NFloat, NFloat) Methode

Definition

Führt eine lineare Interpolation zwischen zwei Werten basierend auf der angegebenen Gewichtung aus.

public:
 static System::Runtime::InteropServices::NFloat Lerp(System::Runtime::InteropServices::NFloat value1, System::Runtime::InteropServices::NFloat value2, System::Runtime::InteropServices::NFloat amount) = System::Numerics::IFloatingPointIeee754<System::Runtime::InteropServices::NFloat>::Lerp;
public static System.Runtime.InteropServices.NFloat Lerp (System.Runtime.InteropServices.NFloat value1, System.Runtime.InteropServices.NFloat value2, System.Runtime.InteropServices.NFloat amount);
static member Lerp : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function Lerp (value1 As NFloat, value2 As NFloat, amount As NFloat) As NFloat

Parameter

value1
NFloat

Der erste Wert, der die untere Grenze sein soll.

value2
NFloat

Der zweite Wert, der die Obergrenze sein soll.

amount
NFloat

Ein Wert zwischen 0 und 1, der die Gewichtung der Interpolation angibt.

Gibt zurück

Der interpolierte Wert.

Implementiert

Gilt für: