|
AnimatLab
2
Test
|
Bounding box class for geometric objects. More...
#include <BoundingBox.h>
Collaboration diagram for AnimatSim::BoundingBox:Public Member Functions | |
| BoundingBox (void) | |
| Default constructor. More... | |
| ~BoundingBox (void) | |
| Destructor. More... | |
| float | GetDimensionSize (int iAxis) |
| Gets the size along the supplied dimension. More... | |
| float | Height () |
| Gets the height = (Max.y - Min.y). More... | |
| float | Length () |
| Gets the length = (Max.x - Min.x). More... | |
| float | MaxDimension () |
| Gets the maximum dimension. More... | |
| void | operator= (const BoundingBox &oBox) |
| Compares two bounding boxes to see if they are equal. More... | |
| void | Set (CStdFPoint &vMin, CStdFPoint &vMax) |
| Sets the minimum and maximum widths of the bounding box. More... | |
| void | Set (float MinX, float MinY, float MinZ, float MaxX, float MaxY, float MaxZ) |
| Sets the minimum and maximum widths of the bounding box. More... | |
| float | Width () |
| Gets the width = (Max.z - Min.z). More... | |
Public Attributes | |
| CStdFPoint | Max |
| A vertex with the maximum widths of the bounding box. | |
| CStdFPoint | Min |
| A vertex with the minimum widths of the bounding box. | |
Bounding box class for geometric objects.
Definition at line 17 of file BoundingBox.h.
| AnimatSim::BoundingBox::BoundingBox | ( | void | ) |
| AnimatSim::BoundingBox::~BoundingBox | ( | void | ) |
| float AnimatSim::BoundingBox::GetDimensionSize | ( | int | iAxis | ) |
Gets the size along the supplied dimension.
| iAxis | The axis along which we want the size. |
Definition at line 61 of file BoundingBox.cpp.
References Height(), Length(), and Width().
Referenced by AnimatSim::Environment::Bodies::Mesh::SetBoundingBox().
Here is the call graph for this function:
Here is the caller graph for this function:| float AnimatSim::BoundingBox::Height | ( | ) |
Gets the height = (Max.y - Min.y).
Definition at line 56 of file BoundingBox.cpp.
Referenced by GetDimensionSize().
Here is the caller graph for this function:| float AnimatSim::BoundingBox::Length | ( | ) |
Gets the length = (Max.x - Min.x).
Definition at line 46 of file BoundingBox.cpp.
Referenced by GetDimensionSize().
Here is the caller graph for this function:| float AnimatSim::BoundingBox::MaxDimension | ( | ) |
Gets the maximum dimension.
Definition at line 73 of file BoundingBox.cpp.
| void AnimatSim::BoundingBox::operator= | ( | const BoundingBox & | oBox | ) |
Compares two bounding boxes to see if they are equal.
| oBox | The box to compare with. |
Definition at line 88 of file BoundingBox.cpp.
| void AnimatSim::BoundingBox::Set | ( | CStdFPoint & | vMin, |
| CStdFPoint & | vMax | ||
| ) |
Sets the minimum and maximum widths of the bounding box.
| [in,out] | vMin | The minimum vertex. |
| [in,out] | vMax | The maximum vertex. |
Definition at line 34 of file BoundingBox.cpp.
| void AnimatSim::BoundingBox::Set | ( | float | MinX, |
| float | MinY, | ||
| float | MinZ, | ||
| float | MaxX, | ||
| float | MaxY, | ||
| float | MaxZ | ||
| ) |
Sets the minimum and maximum widths of the bounding box.
| MinX | The minimum x coordinate. |
| MinY | The minimum y coordinate. |
| MinZ | The minimum z coordinate. |
| MaxX | The maximum x coordinate. |
| MaxY | The maximum y coordinate. |
| MaxZ | The maximum z coordinate. |
Definition at line 40 of file BoundingBox.cpp.
| float AnimatSim::BoundingBox::Width | ( | ) |
Gets the width = (Max.z - Min.z).
Definition at line 51 of file BoundingBox.cpp.
Referenced by GetDimensionSize().
Here is the caller graph for this function: