copy method

Vector2 copy(
  1. Vector2 v
)

Implementation

Vector2 copy(Vector2 v) {
  x = v.x;
  y = v.y;

  return this;
}