Returns true if the given point is between the coordinates.
Moves the box to the given position.
Operator overloading for scalar values. -: Adds to left and top, substracts from right and bottom. (Shrinks by amount) +: Subtracts from left and top, adds to right and bottom. (Grows by amount)
Pads the edges of the given box by the given amounts and returns a new Box.
Moves the box by the given values.
Returns a string with the coordinates that is useful for debugging
Returns the area of the represented box.
Returns the lowew-left corner.
Returns the lower-right corner.
Returns the upper-left corner.
Returns the upper-right corner.
Returns the height of the represented box.
Sets the height of the represented box while keeping the top coordinate.
Returns the width of the represented box.
Sets the width of the represented box while keeping the lefthand coordinate.
Graphics primitive. Represents a box on a 2D field. Note on area calculation: The smallest box that can be represented is 1 * 1, as it counts the endpoints as part of the box. This behavior got added with 0.10.0, to standardize various behaviors of the engine, and fix some odd behavior the GUI drawing functions had.