Vector2.Lerp(Vector2, Vector2, Single) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定された重み付けに基づいて、2 つのベクトル間の線形補間を実行します。
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
最初のベクトル。
- value2
- Vector2
2 番目のベクトル。
- amount
- Single
value2 の重みを示す 0 と 1 の間の値。
戻り値
補間ベクトル。
注釈
このメソッドの動作は .NET 5 で変更されました。 詳細については、「 Vector2.Lerp と Vector4.Lerp の動作の変更」を参照してください。