This is the documentation for Enlighten.
class Geo GeoBoundingBox
class Geo::GeoBoundingBox
This class represents an axis aligned bounding box.
Variables
Name | Description |
|---|---|
Geo::v128 v[2] | A min and max position pair. |
Functions
Name | Description |
|---|---|
Appends to the contents of the given array with the lines making up the bounding box. | |
calculates the solid angle of the box as visible from viewPos | |
Compute the closest point in the box to p. | |
Is a box contained by the box? | |
Is a point in the box? | |
Is a point in the box? Only tests xy. | |
Enlarge this bounding box to include the given point. | |
Expands this bounding box by the given amount in each of the three axes (in both directions). | |
Constructor - makes an empty bounding box. | |
Create a bounding box defined by two extreme points. | |
Copy Constructor. | |
Return the center of this bounding box. | |
Return the 8 corner points. | |
Replaces the contents of the given array with the lines making up the bounding box. | |
Distance between two bounding boxes (0 if they intersect) | |
Return the largest face of this bounding box. | |
Return the longest side of this bounding box. | |
Returns the index of the longest axis. | |
Return the maxumum in each axis of this bounding box. | |
Return the minimum in each axis of this bounding box. | |
Return the shortest side of this bounding box. | |
Return the size of this bounding box in each axis. | |
Return the surface area of this bounding box. | |
Return the volume of this bounding box. | |
Returns true if the bounding boxes mutually olaps. | |
IntersectsLightCone(const Geo::v128 &, const Geo::v128 &, float, float) | Returns true if the bounding box intersects the light cone. |
IntersectsRay(const Geo::v128 &, const Geo::v128 &, float &) | Returns true if the bounding box intersects the ray. If intersects then tHit return the distance to the hit. |
Returns true if the bounding box overlaps the sphere. | |
Returns true if the bounding box overlaps the sphere. | |
Returns true if the bbox is empty (ie uninitialised) | |
Indexed access to the two extreme points that define this bounding box (index must be 0 or 1). | |
Compute and return the union of this bounding with another. | |
Enlarge this bounding box to include the given point. | |
Compute the inplace union of this bounding box and another. | |
Resets the box to it's default empty state. | |
Returns a new transformed bounding box. |