Version: 2022.2
言語: 日本語
public static float LerpUnclamped (float a, float b, float t);

パラメーター

a 開始値
b 終了値
t 2 つの float を補間

戻り値

float The float value as a result from the linear interpolation.

説明

ab の間で t による線形補間します。t に制限はありません。

The parameter t is not clamped and a value based on a and b is supported. If t is less than zero, or greater than one, then LerpUnclamped will result in a return value outside the range a to b.

Suppose parameter a = 0.33f, and b = 1.5f. If interpolator t = -0.25f then the return value is 0.0375f.

Details: The calculation (b - a) is 1.17f. This is scaled by 0.25f and a result of 0.2925f is obtained. Subtracting this from a (because the interpolant t is negative) results in 0.0375f.

関連項目: Lerp.