toVector2 method

Vector2 toVector2()

Returns x and y as a Vector2. Note that this is still a relative fractional representation.

Implementation

Vector2 toVector2() => Vector2(x, y);