111 #endif // INCLUDED_BOX
bool RayIntersect(const CVector3D &origin, const CVector3D &dir, float &tMin, float &tMax) const
Check if a given ray intersects this box.
static void out(const wchar_t *fmt,...)
CVector3D m_Center
Centroid location of the box.
CVector3D m_Basis[3]
Basis vectors (u,v,w) of the sides.
static const CBoundingBoxOriented EMPTY
CVector3D m_HalfSizes
Half the sizes of the box in each dimension (u,v,w).
CBoundingBoxOriented()
Empty constructor; creates an empty box.
void GetCorner(int u, int v, int w, CVector3D &out) const
Returns the corner at coordinate (u, v, w).
CBoundingBoxOriented(const CVector3D ¢er, const CVector3D &u, const CVector3D &v, const CVector3D &w, const CVector3D &halfSizes)
Constructs a new oriented box centered at center and with normalized side vectors u...