NFloat.Lerp(NFloat, NFloat, NFloat) 方法

定义

根据给定权重在两个值之间执行线性内插。

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

参数

value1
NFloat

第一个值,旨在作为下限。

value2
NFloat

第二个值,旨在用作上限。

amount
NFloat

一个值,旨在介于 0 和 1 之间,该值指示内插的权重。

返回

内插值。

实现

适用于