Constructor Vector2
Vector2(Single, Single)
Initializes a new instance of the Vector2 class.
Declaration
public Vector2(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | x | Initial value for the X component of the vector. |
| System.Single | y | Initial value for the Y component of the vector. |