Half.Lerp(Half, Half, Half) 方法

定义

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

public:
 static Half Lerp(Half value1, Half value2, Half amount) = System::Numerics::IFloatingPointIeee754<Half>::Lerp;
public static Half Lerp (Half value1, Half value2, Half amount);
static member Lerp : Half * Half * Half -> Half
Public Shared Function Lerp (value1 As Half, value2 As Half, amount As Half) As Half

参数

value1
Half

第一个值,应为下限。

value2
Half

第二个值,该值应为上限。

amount
Half

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

返回

内插值。

实现

适用于