Rect.leftTopRightBottom constructor

Rect.leftTopRightBottom(
  1. int left,
  2. int top,
  3. int right,
  4. int bottom,
)

Implementation

Rect.leftTopRightBottom(int left, int top, int right, int bottom)
    : pos = Vec(left, top),
      size = Vec(right - left, bottom - top);