Vector2 コンストラクター
定義
オーバーロード
Vector2(Single) |
2 つの要素が同じ値を持つ新しい Vector2 オブジェクトを作成します。Creates a new Vector2 object whose two elements have the same value. |
Vector2(Single, Single) |
指定した値を要素とするベクトルを作成します。Creates a vector whose elements have the specified values. |
Vector2(Single)
2 つの要素が同じ値を持つ新しい Vector2 オブジェクトを作成します。Creates a new Vector2 object whose two elements have the same value.
public:
Vector2(float value);
public Vector2 (float value);
new System.Numerics.Vector2 : single -> System.Numerics.Vector2
Public Sub New (value As Single)
パラメーター
- value
- Single
両方の要素に割り当てる値。The value to assign to both elements.
Vector2(Single, Single)
指定した値を要素とするベクトルを作成します。Creates a vector whose elements have the specified values.
public:
Vector2(float x, float y);
public Vector2 (float x, float y);
new System.Numerics.Vector2 : single * single -> System.Numerics.Vector2
Public Sub New (x As Single, y As Single)