Construct a box which extends between 2 points. Boundaries: min is inside the box, max is just outside.
Euclidean distance from a point.
Euclidean distance from another box.
Expands the box to include point.
Expands the box to include another box. This function deals with empty boxes correctly.
Extends the area of this Box.
Extends the area of this Box.
Assumes sorted boxes. This function deals with empty boxes correctly.
Assumes sorted boxes. This function deals with empty boxes correctly.
Assign with another box.
Cast to other box types.
Scale the box by factor scale, and round the result to integer if needed.
Scale the box by factor scaleX horizontally and scaleY vetically. Round the result to integer if needed.
Shrink the area of this Box. The box might became unsorted.
Shrinks the area of this Box.
Euclidean squared distance from a point.
Euclidean squared distance from another box.
Translate this Box.
Translate this Box by x, y.
Translate this Box by x, y.
Sets depth of the box assuming min point is the pivot.
Sets height of the box assuming min point is the pivot.
Sets size of the box assuming min point is the pivot.
Sets width of the box assuming min point is the pivot.
Helper function to create rectangle with a given point, width and height.
N-dimensional half-open interval [a, b[.