40 void BoundingBox::Set(
float MinX,
float MinY,
float MinZ,
float MaxX,
float MaxY,
float MaxZ)
42 Min.Set(MinX, MinY, MinZ);
43 Max.Set(MaxX, MaxY, MaxZ);
77 fltMax = STD_MAX(fabs(
Min.x), fabs(
Min.y));
78 fltMax = STD_MAX((
double) fltMax, fabs(
Min.z));
80 fltMax = STD_MAX((
double) fltMax, fabs(
Max.x));
81 fltMax = STD_MAX((
double) fltMax, fabs(
Max.y));
82 fltMax = STD_MAX((
double) fltMax, fabs(
Max.z));
Root namespace for the base simulation library for AnimatLab.
CStdFPoint Min
A vertex with the minimum widths of the bounding box.
float Width()
Gets the width = (Max.z - Min.z).
BoundingBox(void)
Default constructor.
float Length()
Gets the length = (Max.x - Min.x).
Declares the bounding box class.
void operator=(const BoundingBox &oBox)
Compares two bounding boxes to see if they are equal.
Bounding box class for geometric objects.
float Height()
Gets the height = (Max.y - Min.y).
float MaxDimension()
Gets the maximum dimension.
CStdFPoint Max
A vertex with the maximum widths of the bounding box.
~BoundingBox(void)
Destructor.
float GetDimensionSize(int iAxis)
Gets the size along the supplied dimension.
void Set(CStdFPoint &vMin, CStdFPoint &vMax)
Sets the minimum and maximum widths of the bounding box.