Creates a Box3 bounded by min and max.
Vector3 representing the upper (x, y, z) boundary of the box. Default is ( - Infinity, - Infinity, - Infinity ).
Vector3 representing the lower (x, y, z) boundary of the box. Default is ( + Infinity, + Infinity, + Infinity ).
Read-only flag to check if a given object is of type Box3.
Returns a new Box3 with the same min and max as this one.
A new instance.
Test if this box includes the entirety of box.
True if this box includes the entirety of box. If this and box are identical, this function also returns true.
Box3 to test for inclusion.
Test if the specified point lies within or on the boundaries of this box.
True if the specified point lies within or on the boundaries of this box.
Vector3 to check for inclusion.
Find 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.
Returns the distance.
Vector3 to measure distance to.
Test if this box and box share the same lower and upper bounds.
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. The depth of this box will be expanded by the z component of vector in both directions.
This instance.
Vector3 to expand the box by.
Computes the intersection of this and box, setting the upper bound of this box to the lesser of the two boxes' upper bounds and the lower bound of this box to the greater of the two boxes' lower bounds. If there's no overlap, makes this box empty.
This instance.
Box to intersect with.
Determines whether or not this box intersects box.
True if box intersects this box.
Box to check for intersection against.
Determines whether or not this box intersects plane.
True if this box intersects the plane.
Plane to check for intersection against.
Determines whether or not this box intersects sphere.
True if this box overlaps any part of a sphere.
Sphere to check for intersection against.
Determines whether or not this box intersects triangle.
True if this box overlaps triangle anywhere.
Triangle to check for intersection against.
Returns true if this box includes zero points within its bounds. Note that a box with equal lower and upper bounds still includes one point, the one both bounds share.
True if box includes zero points.
Makes this box empty.
This instance.
Sets the lower and upper (x, y, z) boundaries of this box. Note that this method only copies the values from the given objects.
This instance.
Sets the upper and lower bounds of this box to include all of the data in array.
This instance.
An array of position data that the resulting box will envelop.
Represents an axis-aligned bounding box (AABB) in 3D space.