Rect.sides constructor

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

Create a Rect using the given bounds

Implementation

Rect.sides(int top, int right, int bottom, int left)
    : position = Vec2(left, top),
      size = Vec2(right - left, bottom - top);