使用英语阅读

通过


Vector.Lerp 方法

定义

重载

Lerp(Vector<Double>, Vector<Double>, Vector<Double>)

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

Lerp(Vector<Single>, Vector<Single>, Vector<Single>)

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

Lerp(Vector<Double>, Vector<Double>, Vector<Double>)

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

public static System.Numerics.Vector<double> Lerp(System.Numerics.Vector<double> x, System.Numerics.Vector<double> y, System.Numerics.Vector<double> amount);

参数

x
Vector<Double>

第一个向量。

y
Vector<Double>

第二个向量。

amount
Vector<Double>

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

返回

内插向量。

适用于

Lerp(Vector<Single>, Vector<Single>, Vector<Single>)

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

public static System.Numerics.Vector<float> Lerp(System.Numerics.Vector<float> x, System.Numerics.Vector<float> y, System.Numerics.Vector<float> amount);

参数

x
Vector<Single>

第一个向量。

y
Vector<Single>

第二个向量。

amount
Vector<Single>

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

返回

内插向量。

适用于