The center of the axis aligned bounding box (x,y and z in this order).
The half extent on each axis (x,y and z in this order).
Clamps the given AABB with the given limit AABB.
If the boxes intersect, then the result is the intersection of the 2 boxes. If the 2 boxes do not intersect, then the AABB is restricted to the intersection of each axis in each direction. The result is therefore not the intersection of the two boxes, but the union of the intersection in each axis. If there is no intersection in this axis, the extent in this axis is left unchanged.
true if pLimitAABB is valid.
Tells if the two AABB are strictly identical.
true if the two AABB are strictly identical.
Sets the content of the AABB from a former call to toJSON.
true if the data is set.
Grows the AABB to contain the box defined by Min : (pMinX,pMinY,pMinZ), Max : (pMaxX,pMaxY,pMaxZ).
There is no check that pMinX <= pMaxX, pMinY <= pMaxY, pMinZ <= pMaxZ.
false is the pMax is lower than pMin else true.
Grows the AABB to contain the box pBox.
false is the pBox is invalid else true.
Tests if a point is in the box.
true if point is in the AABB, else false.
Tells where the box is located relative to the plane defined by the equation pPlane : (ax+by+cz=d).
The positive side is given by the normal vector of the plane : (a,b,c) which are the three first parameters of pPlane. If the box is strictly included in the area of the normal, then 1 is returned, if the box is strictly included in the area opposite to the normal of the plane, -1 is returned. If the box intersects the plan, 0 is returned.
1 on positive side, -1 on negative side, 0 if it intersects the plane.
An axis aligned Bounding Box.
This object contains a center and the half extent of the resulting box.