共用方式為


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 之間,表示插補的權數。

傳回

插補值。

實作

適用於