"L. Spiro Engine"
|
An oriented bounding box. More...
#include <LSPObb.h>
Public Member Functions | |
CVector3 LSE_CALL | ClosestPointToPoint (const CVector3 &_vPoint) const |
LSREAL LSE_CALL | GetSqDistFromPoint (const CVector3 &_vPoint) const |
CObb LSE_CALL | Transform (const CMatrix4x4 &_mTransform) const |
Public Attributes | |
CVector3 | m_vCenter |
CVector3 | m_vAxes [3] |
CVector3 | m_vExtents |
An oriented bounding box.
Class CObb Description: An oriented bounding box. Oriented bounding boxes attempt to make the tightest rectangular block around an object, using any axis for the fit. Because their orientations can be arbitrary, collision tests against them can be more expensive, but they provide fewer false-positives.
CVector3 LSE_CALL lsp::CObb::ClosestPointToPoint | ( | const CVector3 & | _vPoint | ) | const |
Get the closest point on this OBB to a given point.
_vPoint | The point from which the closest point on this bounding box is to be calculated. |
LSREAL LSE_CALL lsp::CObb::GetSqDistFromPoint | ( | const CVector3 & | _vPoint | ) | const |
Get the distance from the given point to this OBB.
_vPoint | The point from which the distance to this bounding box is to be calculated. |
CObb LSE_CALL lsp::CObb::Transform | ( | const CMatrix4x4 & | _mTransform | ) | const |
Create a new bounding box that represents the result of this bounding box transformed by the given matrix.
_mTransform | The matrix transform. |
CVector3 lsp::CObb::m_vAxes[3] |
The local X-, Y-, and Z- axis directions.
CVector3 lsp::CObb::m_vCenter |
The center of the box.
CVector3 lsp::CObb::m_vExtents |
The positive half-width extents along each axis.