NFloat.Lerp(NFloat, NFloat, NFloat) Methode

Definitie

Hiermee wordt een lineaire interpolatie tussen twee waarden uitgevoerd op basis van het opgegeven gewicht.

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

Parameters

value1
NFloat

De eerste waarde, die bedoeld is om de ondergrens te zijn.

value2
NFloat

De tweede waarde, die bedoeld is als bovengrens.

amount
NFloat

Een waarde, bedoeld tussen 0 en 1, die het gewicht van de interpolatie aangeeft.

Retouren

De geïnterpoleerde waarde.

Implementeringen

Van toepassing op