111 #endif // INCLUDED_BOX static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:421
Definition: Vector3D.h:30
CVector3D m_Center
Centroid location of the box.
Definition: BoundingBoxOriented.h:102
bool RayIntersect(const CVector3D &origin, const CVector3D &dir, float &tMin, float &tMax) const
Check if a given ray intersects this box.
Definition: BoundingBoxOriented.cpp:47
CVector3D m_Basis[3]
Basis vectors (u,v,w) of the sides.
Definition: BoundingBoxOriented.h:106
static const CBoundingBoxOriented EMPTY
Definition: BoundingBoxOriented.h:108
void GetCorner(int u, int v, int w, CVector3D &out) const
Returns the corner at coordinate (u, v, w).
Definition: BoundingBoxOriented.h:76
CVector3D m_HalfSizes
Half the sizes of the box in each dimension (u,v,w).
Definition: BoundingBoxOriented.h:103
CBoundingBoxOriented()
Empty constructor; creates an empty box.
Definition: BoundingBoxOriented.h:35
Definition: BoundingBoxAligned.h:33
bool IsEmpty() const
Definition: BoundingBoxOriented.h:91
Definition: BoundingBoxOriented.h:30
void SetEmpty()
Definition: BoundingBoxOriented.h:81
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...
Definition: BoundingBoxOriented.h:43