Creates a new bounding box from two corner points.
Gets or sets the point in the maximal corner.
Gets or sets the point in the minimal corner.
Gets the area of this BoundingBox. If a bounding box is invalid, the area is 0.
Determines whether a bounding box is degenerate (flat) in one or more directions. 0 = box is not degenerate; 1 = box is a rectangle (degenerate in one direction); 2 = box is a line (degenerate in two directions); 3 = box is a point (degenerate in three directions); 4 = box is not valid.
Gets a value that indicates whether or not this bounding box is valid. Empty boxes are not valid, and neither are boxes with unset points.
Gets the volume of this BoundingBox. If a bounding box is invalid, the volume is 0.
Static
EmptyGets an [Empty] bounding box. An Empty box is an invalid structure that has negative width.
Returns a clone of this bounding box.
Finds the closest point on or in the bounding box.
The point on or in the box that is closest to the sample point.
Sample point.
If false, the point is projected onto the boundary faces only, otherwise the interior of the box is also taken into consideration. default true
Determines whether this bounding box contains another bounding box.
If 'strict' is affirmative, true if the box is inside this bounding box; false if it is on the surface or outside. If 'strict' is negative, true if the point is on the surface or on the inside of the bounding box; otherwise false.
box to test.
f true, the box needs to be fully on the inside of the bounding box. I.e. coincident boxes will be considered 'outside'.
Tests a point for BoundingBox inclusion.
If 'strict' is affirmative, true if the point is inside this bounding box; false if it is on the surface or outside. If 'strict' is negative, true if the point is on the surface or on the inside of the bounding box; otherwise false.
Point to test.
If true, the point needs to be fully on the inside of the BoundingBox. I.e. coincident points will be considered 'outside'.
Determines whether a boundingbox is equal to another boundingbox.
true if other has the same coordinates as this; otherwise false.
A Boundingbox.
Gets one of the eight corners of the box.
The corner point.
true for the minimum on the X axis; false for the maximum.
true for the minimum on the Y axis; false for the maximum.
true for the minimum on the Z axis; false for the maximum.
============================================================ =========================== 3 ============================== ======================================== 2 ================= ============= 0 ============================================ ============================= 1 ============================ [0] Min.X, Min.Y, Min.Z [1] Max.X, Min.Y, Min.Z [2] Max.X, Max.Y, Min.Z [3] Min.X, Max.Y, Min.Z [4] Min.X, Min.Y, Max.Z [5] Max.X, Min.Y, Max.Z [6] Max.X, Max.Y, Max.Z [7] Min.X, Max.Y, Max.Z
Returns a new inflated box with custom amounts in all directions. Inflating with negative amounts may result in decreasing boxes. InValid boxes can not be inflated and will return a clone of itself.
A new inflated box or a clone of itself if it is invalid.
Amount to inflate this box in the x direction.
Amount to inflate this box in the y direction.
Amount to inflate this box in the z direction.
Inflates the box with equal amounts in all directions. Inflating with negative amounts may result in decreasing boxes. InValid boxes can not be inflated and will return a clone of itself.
A new inflated box or a clone of itself if it is invalid.
Amount to inflate the box.
Creates a bounding box to represent the intersection of itself and another box.
Evaluates the bounding box with normalized parameters. The box has idealized side length of 1x1x1.
The point at the {tx, ty, tz} parameters.
Normalized (between 0 and 1 is inside the box) parameter along the X direction.
Normalized (between 0 and 1 is inside the box) parameter along the Y direction.
Normalized (between 0 and 1 is inside the box) parameter along the Z direction.
Transforms the bounding box with a given transform.
Creates a bounding box to represent the union of itself and another box.
If either this BoundingBox or the other BoundingBox is InValid, the Valid BoundingBox will be the only one included in the union.
Static
CreateConstructs a bounding box from numeric extremes.
A new bounding box.
Minimum X value.
Minimum Y value.
Minimum Z value.
Maximum X value.
Maximum Y value.
Maximum Z value.
Static
CreateConstructs a boundingbox from a collection of 8 points.
Static
IntersectComputes the intersection of two bounding boxes. Invalid boxes are ignored and will not affect the intersection. If both boxes are invalid, the union will return an empty boundingbox.
An intersected BoundingBox.
A BoundingBox.
Another BoundingBox.
Static
UnionReturns a new BoundingBox that represents the union of boxes a and b. Invalid boxes are ignored and will not affect the union. If both boxes are invalid, the union will return an empty boundingbox.
A unioned BoundingBox.
A BoundingBox.
Another BoundingBox.
Generated using TypeDoc
Represents the value of two points in a bounding box defined by the two extreme corner points. This box is therefore aligned to the world X, Y and Z axes.