Vector2
constructor(x: Float, y: Float)
Creates a new Vector2 instance with the specified x, y components.
Parameters
x
The x position.
y
The y position.
constructor(value: Float)
Initializes a Vector2 instance with a single float value.
Parameters
value
The float value that will be set to x and y.
Initializes a Vector2 instance from another Vector2 instance.
Parameters
Initializes a Vector2 instance from a Vector3 instance's x and y.