102 void Scale(
float aScale );
200 bool Intersect(
const RAY2D& aRay,
float* aOutHitT0,
float* aOutHitT1 )
const;
Manage a bounding box defined by two SFVEC2F min max points.
SFVEC2F GetCenter() const
bool Intersects(const BBOX_2D &aBBox) const
Test if a bounding box intersects this box.
unsigned int MaxDimension() const
SFVEC2F m_min
point of the lower position of the bounding box
void ScaleNextDown()
Scale a bounding box to the next float representation making it smaller.
SFVEC2F GetExtent() const
SFVEC2F m_max
point of the higher position of the bounding box
void Union(const SFVEC2F &aPoint)
Recalculate the bounding box adding a point.
void Scale(float aScale)
Scale a bounding box by its center.
bool IsInitialized() const
Check if this bounding box is already initialized.
const SFVEC2F & Min() const
float Area() const
Calculate the area of a bounding box.
bool Inside(const SFVEC2F &aPoint) const
Check is a point is inside this bounding box.
BBOX_2D()
Create with default values a bounding box (not initialized).
void Reset()
Reset the bounding box to zero and uninitialize it.
const SFVEC2F & Max() const
void Set(const SFVEC2F &aPbMin, const SFVEC2F &aPbMax)
Set bounding box with new parameters.
void ScaleNextUp()
Scale a bounding box to the next float representation making it larger.
bool Intersect(const RAY2D &aRay, float *t) const