clone method

  1. @override
Vector2 clone()
override

Implementation

@override
Vector2 clone() {
  return Vector2(x, y);
}