Rect constructor

Rect(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
)

Implementation

Rect(int x, int y, int width, int height)
    : pos = Vec(x, y),
      size = Vec(width, height);