Share via


NFloat.Lerp(NFloat, NFloat, NFloat) Método

Definición

Realiza una interpolación lineal entre dos valores basados en el peso especificado.

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

Parámetros

value1
NFloat

Primer valor, que está pensado para ser el límite inferior.

value2
NFloat

El segundo valor, que está pensado para ser el límite superior.

amount
NFloat

Valor, destinado a estar comprendido entre 0 y 1, que indica el peso de la interpolación.

Devoluciones

Se corresponde con el valor interpolado.

Implementaciones

Se aplica a