The Matter.Bounds module contains methods for creating and manipulating axis-aligned bounding boxes (AABB).
Matter.Bounds
Static
Returns true if the bounds contains the given point.
True if the bounds contain the point, otherwise false
contains
Creates a new axis-aligned bounding box (AABB) for the given vertices.
Optional
A new bounds object
create
Returns true if the two bounds intersect.
True if the bounds overlap, otherwise false
overlaps
Shifts the bounds to the given position.
shift
Translates the bounds by the given vector.
translate
Updates bounds using the given vertices and extends the bounds given a velocity.
update
Generated using TypeDoc
The
Matter.Bounds
module contains methods for creating and manipulating axis-aligned bounding boxes (AABB).