Rectangle

Constructors

this
this(int left, int top, int right, int bottom)
this
this(Point upperLeft, Point lowerRight)
this
this(Point upperLeft, Size size)

Members

Functions

contains
bool contains(Point p)

Returns true if this rectangle entirely contains the other

contains
bool contains(Rectangle r)

Returns true if this rectangle entirely contains the other

intersectionOf
Rectangle intersectionOf(Rectangle r)

Returns a Rectangle representing the intersection of this and the other given one.

overlaps
bool overlaps(Rectangle r)

Returns true of the two rectangles at any point overlap

Properties

center
Point center [@property getter]
height
int height [@property getter]
lowerLeft
Point lowerLeft [@property getter]
lowerRight
Point lowerRight [@property getter]
size
Size size [@property getter]
upperLeft
Point upperLeft [@property getter]
upperRight
Point upperRight [@property getter]
width
int width [@property getter]

Variables

bottom
int bottom;
left
int left;
right
int right;
top
int top;

Meta