Editare

Partajați prin


NFloat.Lerp(NFloat, NFloat, NFloat) Method

Definition

Performs a linear interpolation between two values based on the given weight.

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

The first value, which is intended to be the lower bound.

value2
NFloat

The second value, which is intended to be the upper bound.

amount
NFloat

A value, intended to be between 0 and 1, that indicates the weight of the interpolation.

Returns

The interpolated value.

Implements

Applies to