Vector2 Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new Vector2 object.
Overloads
| Name | Description |
|---|---|
| Vector2(Single) |
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)
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)