Vec2.copy constructor

Vec2.copy(
  1. Vec2 other
)

Implementation

Vec2.copy(Vec2 other)
    : x = other.x,
      y = other.y;