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

Definição

Executa uma interpolação linear entre dois valores com base no peso fornecido.

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

O primeiro valor, que se destina a ser o limite inferior.

value2
NFloat

O segundo valor, que se destina a ser o limite superior.

amount
NFloat

Um valor, destinado a ser entre 0 e 1, que indica o peso da interpolação.

Retornos

O valor interpolado.

Implementações

Aplica-se a