The lower upper (x, y) boundary of the box. Default is ( - Infinity, - Infinity ).
The lower (x, y) boundary of the box. Default is ( + Infinity, + Infinity ).
Creates a new Box2 with the same min and max as this one.
The new instance.
Test if this box includes the entirety of box. If this and box are identical,this function also returns true.
True if this box includes the entirety of box.
Box2 to test for inclusion.
Test if the specified point lies within or on the boundaries of this box.
True if point lies within or on the boundary of this box.
Vector2 to check for inclusion.
Compute the distance from any edge of this box to the specified point. If the point lies inside of this box, the distance will be 0.
The distance to point.
Vector2 to measure distance to.
Test the dimensions of this box with another box for equality.
True if this box and box share the same lower and upper bounds.
Box to compare with this one.
Expands each dimension of the box by scalar. If negative, the dimensions of the box will be contracted.
This instance.
Distance to expand the box by.
Expands this box equilaterally by vector. The width of this box will be expanded by the x component of vector in both directions. The height of this box will be expanded by the y component of vector in both directions.
This instance.
Vector2 to expand the box by.
Computes a point as a proportion of this box's width and height.
The target vector
Determines whether or not this box intersects box.
True if this and another box2 overlap.
Box to check for intersection against.
Determine if there is no overlap between this box and another. Note that a box with equal lower and upper bounds still includes one point, the one both bounds share.
True if this box includes zero points within its bounds.
Makes this box empty.
This instance.
Sets the lower and upper (x, y) boundaries of this box. Please note that this method only copies the values from the given objects.
This instance.
Represents an axis-aligned bounding box (AABB) in 2D space.