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.
Optionalclear: boolean = falseWhether to reset the bounds before adding the new bounds.
Expands this bounds to include the axis-aligned bounding box of
the given rect's four corners, optionally transformed through m
first. With a non-identity m (rotation, scale, etc.) the result
is the AABB of the transformed quad, not a transformed AABB.
Expand this bounds to include every shape in shapes. Each shape
contributes its own .getBounds() (so Rect, Polygon, Ellipse,
Bounds, and anything else implementing the same getter all work);
shapes without .getBounds() are silently ignored. Use clear=true
to compute a fresh union (matches the add / addBounds shape).
Useful for sizing a renderable from its bodyDef.shapes before
the underlying physics body has been constructed — used by the
TMX shape factory and Trigger.
Centers the bounds position around the given coordinates.
The x coordinate to center around.
The y coordinate to center around.
The current Bounds instance for method chaining.
Resets the bounds to its initial state.
Returns true if the bounds contain the given point or vector.
Optionaly: numberThe y coordinate if the first parameter is a number.
True if the bounds contain the point or vector, otherwise false.
Determines whether all coordinates of this bounds are finite numbers.
False if any coordinates are positive or negative Infinity or NaN; otherwise, true.
Returns true if the two bounds intersect.
The bounds to check for intersection.
True if the bounds overlap, otherwise false.
Sets the bounds to the given minimum and maximum values.
The minimum x value.
The minimum y value.
The maximum x value.
The maximum y value.
Shifts the bounds to the given x, y position or vector.
Optionaly: numberThe y coordinate if the first parameter is a number.
Translates the bounds by the given point or vector.
Optionaly: numberThe y coordinate if the first parameter is a number.
a bound object contains methods for creating and manipulating axis-aligned bounding boxes (AABB).