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