|
Jameo Core Library
|
A class to calculate the bounding box of points. More...
Public Member Functions | |
| Extents () | |
| Constructor. | |
| void | add (const Vertex2 &pt) |
| Expand the box to also enclose the point pt. | |
| void | add (const Vertex3 &pt) |
| Expand the box to also enclose the point pt. | |
| void | add (const Extents &ext) |
| Expand the box to also enclode the box ext. If the other box is invalid (no point was added), then it will be ignored. | |
| const Vertex3 & | minPoint () const |
| const Vertex3 & | maxPoint () const |
| Vertex3 | delta () const |
| bool | isValid () const |
| Returns true, if the Extent has collected at minimum 1 point. | |
A class to calculate the bounding box of points.
| jm::Extents::Extents | ( | ) |
Constructor.
| void jm::Extents::add | ( | const Extents & | ext | ) |
Expand the box to also enclode the box ext. If the other box is invalid (no point was added), then it will be ignored.
| void jm::Extents::add | ( | const Vertex2 & | pt | ) |
Expand the box to also enclose the point pt.
| void jm::Extents::add | ( | const Vertex3 & | pt | ) |
Expand the box to also enclose the point pt.
| Vertex3 jm::Extents::delta | ( | ) | const |
| bool jm::Extents::isValid | ( | ) | const |
Returns true, if the Extent has collected at minimum 1 point.
| const Vertex3 & jm::Extents::maxPoint | ( | ) | const |
| const Vertex3 & jm::Extents::minPoint | ( | ) | const |