Optional
pMin: Vector3Optional
pMax: Vector3Static
Readonly
EDGESStatic
Readonly
SIDE_Right side point indices.
Static
Readonly
SIDE_Top side point indices.
Static
Readonly
SIDE_Back side point indices.
Static
Readonly
SIDE_Left side point indices.
Static
Readonly
SIDE_Bottom side point indices.
Static
Readonly
SIDE_Front side point indices.
Returns an array with the 8 box corners in fixed order.
Order of points
..6--------5
./ | / |
1--|----2 |
| 7----|--4
| / | /
0-------3
0 = (min.x, min.y, min.z)
1 = (min.x, max.y, min.z)
2 = (max.x, max.y, min.z)
3 = (max.x, min.y, min.z)
4 = (max.x, min.y, max.z)
5 = (max.x, max.y, max.z)
6 = (min.x, max.y, max.z)
7 = (min.x, min.y, max.z)
Checks if this bounding box intersects with another bounding box.
The other bounding box.
If true, it counts as an intersection if the two bounding boxes are touching eachother.
Tolerance value for the check (default: utils.math.EPSILON)
Checks if this bounding box intersects with another bounding box given as a min and max vector.
The min vector of the bonding box.
The max vector of the bonding box.
If true, it counts as an intersection if the two bounding boxes are touching eachother.
Tolerance value for the check (default: utils.math.EPSILON)
Checks if this bounding box intersects with the given point.
The point.
If true, it counts as an intersection if the point is directly on the border of this bounding box.
Tolerance value for the check (default: utils.math.EPSILON)
Static
FromCalculates the bounding box for the given elements. If pVisibleOnly is true invisible nodes are ignored.
Static
FromCalculates the bounding box for the given mesh. If pVisibleOnly is true invisible nodes are ignored.
Static
FromCalculates the bounding box for the given node. If pVisibleOnly is true invisible nodes are ignored.
Static
IsGenerated using TypeDoc
Indices of the 12 box edges