#include <eng_volume.hh>

Public Member Functions | |
| BoxVolume (void) | |
| BoxVolume (const Vector3 &minimum, const Vector3 &maximum) | |
| BoxVolume (const SphereVolume &sphereVolume) | |
| ~BoxVolume () | |
| SphereVolume | ToSphereVolume (void) const |
| BoxVolume | ToBoxVolume (void) const |
| bool | IfInside (const Vector3 &v) const |
| bool | IfOutside (const Vector3 &v) const |
| bool | IfInside (const Volume &volume) const |
| bool | IfOutside (const Volume &volume) const |
| bool | IfIntersecting (const Volume &volume) const |
| Vector3 | GetPosition (void) const |
| void | SetPosition (const Vector3 &position) |
| fp | GetRadius (void) const |
| bool | IfOutside (const BoxVolume &other) const |
| bool | IfInside (const BoxVolume &other) const |
| bool | IfIntersecting (const BoxVolume &other) const |
| void | Set (const Vector3 &v1, const Vector3 &v2) |
| void | Grow (const Vector3 &v) |
| void | Grow (const BoxVolume &other) |
| Vector3 | GetCenter (void) const |
| Vector3 | GetMidOffset (void) const |
| bool | IfEmpty (void) const |
| bool | IfZero (void) const |
| bool | IfCube (void) const |
| bool | Check (void) const |
Public Attributes | |
| Vector3 | mMin |
| Vector3 | mMax |
Friends | |
| bool | operator== (const BoxVolume &a, const BoxVolume &b) |
| bool | operator!= (const BoxVolume &a, const BoxVolume &b) |
BoxVolume is axis-aligned (unsuitable for a box at any orientation).
| eng::BoxVolume::BoxVolume | ( | void | ) |
ctor/dtor.
| eng::BoxVolume::BoxVolume | ( | const Vector3 & | minimum, | |
| const Vector3 & | maximum | |||
| ) |
| eng::BoxVolume::BoxVolume | ( | const SphereVolume & | sphereVolume | ) |
| eng::BoxVolume::~BoxVolume | ( | ) |
| SphereVolume eng::BoxVolume::ToSphereVolume | ( | void | ) | const [virtual] |
Implement abstract ToSphereVolume().
Implements eng::Volume.
| BoxVolume eng::BoxVolume::ToBoxVolume | ( | void | ) | const [inline, virtual] |
Implements eng::Volume.
| bool eng::BoxVolume::IfInside | ( | const Vector3 & | v | ) | const [virtual] |
Implements eng::Volume.
| bool eng::BoxVolume::IfOutside | ( | const Vector3 & | v | ) | const [inline, virtual] |
Reimplemented from eng::Volume.
| bool eng::BoxVolume::IfInside | ( | const Volume & | volume | ) | const [virtual] |
| bool eng::BoxVolume::IfOutside | ( | const Volume & | volume | ) | const [virtual] |
| bool eng::BoxVolume::IfIntersecting | ( | const Volume & | volume | ) | const [virtual] |
| Vector3 eng::BoxVolume::GetPosition | ( | void | ) | const [virtual] |
| void eng::BoxVolume::SetPosition | ( | const Vector3 & | position | ) | [virtual] |
Implements eng::Volume.
| fp eng::BoxVolume::GetRadius | ( | void | ) | const |
| bool eng::BoxVolume::IfOutside | ( | const BoxVolume & | other | ) | const |
| bool eng::BoxVolume::IfInside | ( | const BoxVolume & | other | ) | const |
| bool eng::BoxVolume::IfIntersecting | ( | const BoxVolume & | other | ) | const |
| void eng::BoxVolume::Set | ( | const Vector3 & | v1, | |
| const Vector3 & | v2 | |||
| ) |
| void eng::BoxVolume::Grow | ( | const Vector3 & | v | ) |
| void eng::BoxVolume::Grow | ( | const BoxVolume & | other | ) |
Grow this box to enclose another box. NOTE: When growing a volume, ensure the volume is initialized with the first vertex or other volume. Grow might produce wrong results if it compares the default volume (zeros).
| Vector3 eng::BoxVolume::GetCenter | ( | void | ) | const |
| Vector3 eng::BoxVolume::GetMidOffset | ( | void | ) | const |
| bool eng::BoxVolume::IfEmpty | ( | void | ) | const |
| bool eng::BoxVolume::IfZero | ( | void | ) | const |
| bool eng::BoxVolume::IfCube | ( | void | ) | const |
| bool eng::BoxVolume::Check | ( | void | ) | const |
True if OK.
| Vector3 eng::BoxVolume::mMin |
| Vector3 eng::BoxVolume::mMax |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:25 2007