Coordinate

Represents a box on a 2D field.

Constructors

this
this(int left, int top, int right, int bottom)
Undocumented in source.

Members

Functions

move
void move(int x, int y)

Moves the box to the given position.

relMove
void relMove(int x, int y)

Moves the box by the given values.

toString
string toString()

Returns a string with the coordinates that is useful for debugging

Properties

area
size_t area [@property getter]

Returns the area of the represented box.

height
int height [@property getter]

Returns the height of the represented box.

width
int width [@property getter]

Returns the width of the represented box.

Variables

bottom
int bottom;
Undocumented in source.
left
int left;
right
int right;
top
int top;
Undocumented in source.

Meta