Triton
Visual simulation library for ocean rendering.
Public Member Functions | List of all members
Triton::OrientedBoundingBox Class Reference

An oriented bounding box defined by a center point and three axes. More...

#include <OrientedBoundingBox.h>

Inheritance diagram for Triton::OrientedBoundingBox:
Inheritance graph
[legend]
Collaboration diagram for Triton::OrientedBoundingBox:
Collaboration graph
[legend]

Public Member Functions

 OrientedBoundingBox ()
 Constructor.
 
void Set (const Vector3 &center, const Vector3 &xExtent, const Vector3 &yExtent, const Vector3 &zExtent)
 Define the OBB by a center point and vectors from center to extents in X, Y, and Z.
 
bool PointInBox (const Vector3 &point, double slop) const
 Test if a point is enclosed by the box.
 
void RecomputeBasis ()
 Recomputes the basis used for PointInBox.
 

Detailed Description

An oriented bounding box defined by a center point and three axes.


The documentation for this class was generated from the following file: