Vector2.copy constructor

Vector2.copy(
  1. Vector v
)

Implementation

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