Rect

Axis aligned bounding box.

Members

Type Member Description
float x1 Left coordinate
float y1 Top coordinate
float x2 Right coordinate
float y2 Bottom coordinate

Constructors

Args
new ()
new (float x1, y1, x2, y2)

Functions

Type Function Args
float width ()
float height ()
Pos center ()
translate (float scale_x, scale_y, RectAnchor hor, ver)
Rect scaled (float scale_x, scale_y)