Create a 3d box bounded by min and max.
Optional
min: AcGeVector3dLike(optional) Input the lower (x, y, z) boundary of the box. Set it to ( + Infinity, + Infinity, + Infinity ) if undefined or null provided.
Optional
max: AcGeVector3dLike(optional) Input the upper (x, y, z) boundary of the box. Set it to ( - Infinity, - Infinity, - Infinity ) if undefined or null provided.
Center point of this box
Return the width, height and depth of this box.
Transform this box with the supplied matrix.
Input 4x4 matrix to apply
Return this box
Clamp the point within the bounds of this box.
Input the point to clamp.
Input the result will be copied into this 3d vector.
Return the target
Return true if the specified point lies within or on the boundaries of this box.
Input point to check for inclusion.
Return true if the specified point lies within or on the boundaries of this box.
Returns 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.
Input one 3d point to measure distance to.
Return the distance from any edge of this box to the specified point.
Expand the boundaries of this box to include point.
Expand 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.
Input one 3d vector to expand the box by.
Return this box
Return the center point of the box as a 3d vector.
Input the result copied into this 3d vector.
Return the center point of the box
Return a point as a proportion of this box's width, height and depth.
Input one point
Input the result will be copied into this Vector3.
Return one point
Return the width, height and depth of this box.
Return the result copied into this 3d vector.
Return the width, height and depth of this box.
Compute 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.
Input 3d box to intersect with.
Return this box
Set the lower and upper (x, y, z) boundaries of this box. Please note that this method only copies the values from the given objects.
Input the lower (x, y, z) boundary of the box.
Input the upper (x, y, z) boundary of the box.
Return this box.
Center this box on center and set this box's width, height and depth to the values specified in size
Input the desired center position of the box.
Input the desired x, y and z dimensions of the box.
Return this box
Set the upper and lower bounds of this box to include all of the points in points.
Input an array of 3d point or 3d vector that the resulting box will contain.
Return this box
Add offset to both the upper and lower bounds of this box, effectively moving this box offset units in 3d space.
Input direction and distance of offset.
Return this box
Compute the union of this box and box, setting the upper bound of this box to the greater of the two boxes' upper bounds and the lower bound of this box to the lesser of the two boxes' lower bounds.
Input the 3d box that will be unioned with this box.
Return this box
The class representing an axis-aligned bounding box (AABB) in 3d space.