Creates an instance of Vector2 with given coordinates.
The x coordinate
The y coordinate
Calculates the distance between this vector another one given as parameter.
Returns the length of the current vector.
Returns a new vector with the coordinates multiplied by the parameter s.
Returns the normalised vector.
Returns a new instance with all components set to zero.
Generated using TypeDoc
This class represents a twodimensional real Vector