Vector3.Lerp(Vector3, Vector3, Single) Vector3.Lerp(Vector3, Vector3, Single) Vector3.Lerp(Vector3, Vector3, Single) Vector3.Lerp(Vector3, Vector3, Single) Method

定義

指定された重み付けに基づいて、2 つのベクトル間の線形補間を実行します。Performs a linear interpolation between two vectors based on the given weighting.

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 Vector3 Vector3 Vector3

最初のベクトル。The first vector.

value2
Vector3 Vector3 Vector3 Vector3

2 番目のベクトル。The second vector.

amount
Single Single Single Single

value2 の重みを示す 0 と 1 の間の値。A value between 0 and 1 that indicates the weight of value2.

戻り値

補間ベクトル。The interpolated vector.

適用対象