Rect.atOrigin constructor

Rect.atOrigin(
  1. int width,
  2. int height
)

Create a Rect positioned at (0, 0) with the given width and height

Implementation

Rect.atOrigin(int width, int height)
    : position = Vec2.zero,
      size = Vec2(width, height);