共用方式為


Vector3.Lerp 方法

定義

多載

Lerp(Vector3, Vector3, Single)

根據給定的加權執行兩個向量之間的線性插補。

Lerp(Vector3, Vector3, Vector3)

Lerp(Vector3, Vector3, Single)

來源:
Vector3.cs
來源:
Vector3.cs
來源:
Vector3.cs

根據給定的加權執行兩個向量之間的線性插補。

public:
 static System::Numerics::Vector3 Lerp(System::Numerics::Vector3 value1, System::Numerics::Vector3 value2, float amount);
public static System.Numerics.Vector3 Lerp (System.Numerics.Vector3 value1, System.Numerics.Vector3 value2, float amount);
static member Lerp : System.Numerics.Vector3 * System.Numerics.Vector3 * single -> System.Numerics.Vector3
Public Shared Function Lerp (value1 As Vector3, value2 As Vector3, amount As Single) As Vector3

參數

value1
Vector3

第一個向量。

value2
Vector3

第二個向量。

amount
Single

介於 0 和 1 的值,表示 value2 的加權。

傳回

插補的向量。

適用於

Lerp(Vector3, Vector3, Vector3)

public:
 static System::Numerics::Vector3 Lerp(System::Numerics::Vector3 value1, System::Numerics::Vector3 value2, System::Numerics::Vector3 amount);
public static System.Numerics.Vector3 Lerp (System.Numerics.Vector3 value1, System.Numerics.Vector3 value2, System.Numerics.Vector3 amount);
static member Lerp : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Vector3
Public Shared Function Lerp (value1 As Vector3, value2 As Vector3, amount As Vector3) As Vector3

參數

value1
Vector3
value2
Vector3
amount
Vector3

傳回

適用於