class Geo GeoNonAABoundingBox

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

Name

Description

ContainsPoint(const Geo::v128 &)

Returns true if the supplied point is inside the box.

DistanceToPoint(const Geo::v128 &)

Returns the shortest distance from the supplied point to the box. NOTE: Returns a negative distance for points inside the box.

GeoNonAABoundingBox()

Constructors.

GeoNonAABoundingBox(const Geo::GeoBoundingBox &)

Constructors.

GeoNonAABoundingBox(const Geo::v128, const Geo::v128, const Geo::v128)

Constructors.

GetAxisAlignedBoundingBox()

Gets the minimum axis-aligned bounding box that contains this box.

GetBasis(s32)

Gets the basis vector defining the X, Y or Z principal axis of this box (0 = X, 1 = Y, 2 = Z).

GetCentre()

Returns the position at the centre of the box.

GetCorners(v128)

Fills in the given array with the 8 corner points.

GetEdges(BboxEdge)

Fills in the given array with the 12 edges.

GetFaces(BboxFace)

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.

GetInvWorldMatrix()

From world space to cube map space.

GetPosition()

Gets the corner of this box.

GetSize()

Gets a vector containing the edge lengths of this box in each of X, Y and Z.

GetWorldMatrix()

From cubemap space to world space.

IntersectsBoundingBox(const Geo::GeoNonAABoundingBox &)

Determines if this box intersects the given box.

Load(Geo::IGeoInputStream &)

Load this object from an IGeoStream.

MapFromLocalUnitCube(const Geo::v128 &)

Map a point in the local unit coordinate system of the volume box to WC.

MapToLocalUnitCube(const Geo::v128 &)

Map a WC point to the local unit coordinate system of the volume box.

Save(Geo::IGeoStream &)

Save this object to an IGeoStream.

SetMatrices()

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

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