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 als untere Grenze vorgesehen ist.

value2
NFloat

Der zweite Wert, der die obere Grenze sein soll.

amount
NFloat

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

Gibt zurück

Der interpolierte Wert.

Implementiert

Gilt für: