This is the documentation for Enlighten.
class Geo GeoNonAABoundingBox
class Geo::GeoNonAABoundingBox
Non axis aligned bounding box. Note the "m_Pos" of this class is the CORNER (origin), not the centre.
Functions
Name | Description |
|---|---|
Returns true if the supplied point is inside the box. | |
Returns the shortest distance from the supplied point to the box. NOTE: Returns a negative distance for points inside the box. | |
Constructors. | |
Constructors. | |
GeoNonAABoundingBox(const Geo::v128, const Geo::v128, const Geo::v128) | Constructors. |
Gets the minimum axis-aligned bounding box that contains this box. | |
Gets the basis vector defining the X, Y or Z principal axis of this box (0 = X, 1 = Y, 2 = Z). | |
Returns the position at the centre of the box. | |
Fills in the given array with the 8 corner points. | |
Fills in the given array with the 12 edges. | |
Fills in the given array with the 6 faces. Each face's vertices will be ordered counter-clockwise when viewed from the outside of the bbox. | |
From world space to cube map space. | |
Gets the corner of this box. | |
Gets a vector containing the edge lengths of this box in each of X, Y and Z. | |
From cubemap space to world space. | |
Determines if this box intersects the given box. | |
Load this object from an IGeoStream. | |
Map a point in the local unit coordinate system of the volume box to WC. | |
Map a WC point to the local unit coordinate system of the volume box. | |
Save this object to an IGeoStream. | |
Initialise a non axis aligned bounding box given an origin, an orthonormal basis of 3 unit vectors and the extent size of the the basis vectors. |
Variables
Name | Description |
|---|---|
Geo::v128 m_Basis[3] | An orthonormal basis (of unit vectors) describing the orientation of the box. |
Geo::Matrix m_LU2WC | Matrix mapping from local to world coordinates. |
Geo::v128 m_Pos | Origin (corner) of the axis aligned box. |
Geo::v128 m_Size | Size of the bounding volume (in the basis). |
Geo::Matrix m_WC2LU | Matrix mapping from world to local coordinates. |
bool Geo::GeoNonAABoundingBox::ContainsPoint
public: bool ContainsPoint
(
const Geo::v128 & p
) const