copy method

Vector2 copy()

Creates a new instance with the same values.

Implementation

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