Class: Rect

Rect

Rect is a value object describing an axis-aligned rectangle.


new Rect(x, y, width, height)

Parameters:
Name Type Description
x

The x-coordinate of the "top-left" corner.

y

The y-coordinate of the "top-left" corner.

width

The width of the rectangle.

height

The height of the rectangle.

Author:
  • derschmale <http://www.derschmale.com>