Point containing all the maximum coordinates.
Constructs a new bounding box from two corner points.
Lower extreme for box X size.
Lower extreme for box Y size.
Lower extreme for box Z size.
Upper extreme for box X size.
Upper extreme for box Y size.
Upper extreme for box Z size.
Constructs a bounding box from numeric extremes.
Gets the area of this BoundingBox.
Gets the point in the center of the bounding box.
Gets the diagonal vector of this BoundingBox. The diagonal connects the Min and Max points.
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 or sets the point in the maximal corner.
Gets or sets the point in the minimal corner.
Gets the volume of this BoundingBox.
Amount (in model units) to inflate this box in the x direction.
Amount (in model units) to inflate this box in the y direction.
Amount (in model units) to inflate this box in the z direction.
Inflate the box with custom amounts in all directions. Inflating with negative amounts may result in decreasing boxes. InValid boxes can not be inflated.
Distances <= tolerance will be considered to be zero. If tolerance is negative (default), then a scale invariant tolerance is used.
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.
Determines whether a bounding box is degenerate (flat) in one or more directions.
A transform.
true if this operation is successful; otherwise false.
Updates this bounding box to be the smallest axis aligned bounding box that contains the transformed result of its 8 original corner points.
Static
decodeA js object with the following format:
{
Min: { X: <number>, Y: <number>, Z: <number> },
Max: { X: <number>, Y: <number>, Z: <number> }
}
Decodes a json object to a BoundingBox
Static
unionBox to include in this union.
Updates this BoundingBox to represent the union of itself and another box.
Generated using TypeDoc
Point containing all the minimum coordinates.