We use cookies on this site to enhance your user experience
Collapse Sidebar



Rect.new ( Vector2 min, Vector2 max )

Constructs a new Rect with min as top left corner and max as bottom right corner.

Rect.new ( number minX, number minY, number maxX, number maxY )

Constructs a new Rect using minX and minY as coordinates for the top left corner, and maxX and maxY as coordinates for the bottom right corner.


number Rect.Width

The width of the Rect in pixels.

number Rect.Height

The height of the Rect in pixels.

Vector2 Rect.Min

The top-left corner.

Vector2 Rect.Max

The bottom-right corner.