Gets the bottom coordinate of the bounds.
The bottom coordinate.
Gets the center position of the bounds on the x axis.
The center x coordinate.
Gets the center position of the bounds on the y axis.
The center y coordinate.
Gets the height of the bounds.
The height.
Sets the height of the bounds.
The new height.
Gets the left coordinate of the bounds.
The left coordinate.
Gets the right coordinate of the bounds.
The right coordinate.
Gets the top coordinate of the bounds.
The top coordinate.
Gets the width of the bounds.
The width.
Sets the width of the bounds.
The new width.
Gets the x position of the bounds.
The x position.
Sets the x position of the bounds.
The new x position.
Gets the y position of the bounds.
The y position.
Sets the y position of the bounds.
The new y position.
Adds the given bounds to the bounds definition.
The bounds to add.
Optional
clear: boolean = falseWhether to reset the bounds before adding the new bounds.
Adds the given quad coordinates to this bounds definition, multiplied by the given matrix.
The left x coordinate of the quad.
The top y coordinate of the quad.
The right x coordinate of the quad.
The bottom y coordinate of the quad.
Optional
m: Matrix2dAn optional transform to apply to the given coordinates.
Returns true if the two bounds intersect.
The bounds to check for intersection.
True if the bounds overlap, otherwise false.
Shifts the bounds to the given x, y position or vector.
Optional
y: numberThe y coordinate if the first parameter is a number.
Translates the bounds by the given point or vector.
Optional
y: numberThe y coordinate if the first parameter is a number.
a bound object contains methods for creating and manipulating axis-aligned bounding boxes (AABB).