Vector2.Lerp(Vector2, Vector2, Single) メソッド

定義

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

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

パラメーター

value1
Vector2

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

value2
Vector2

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

amount
Single

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

戻り値

補間ベクトル。The interpolated vector.

適用対象