Rectangle

Constructors

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

Members

Functions

contains
bool contains(in Rectangle r)
bool contains(in Point p)

Returns true if this rectangle entirely contains the other

height
int height()
lowerRight
Point lowerRight()
overlaps
bool overlaps(in Rectangle r)

Returns true of the two rectangles at any point overlap

size
Size size()
upperLeft
Point upperLeft()
width
int width()

Variables

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

Meta