Sirikata
|
#include <BoundingSphere.hpp>
Public Member Functions | |
BoundingSphere () | |
BoundingSphere (const Vector3< real > ¢er, float radius) | |
float32 | radius () const |
Vector3< real > | center () const |
BoundingSphere< real > | recenter (const Vector3< real > &newCenter) |
BoundingSphere & | mergeIn (const BoundingSphere &rhs) |
BoundingSphere | merge (const BoundingSphere &rhs) const |
bool | contains (const BoundingSphere &other) const |
bool | contains (const BoundingSphere &other, real epsilon) const |
bool | contains (const Vector3< real > &pt) const |
bool | invalid () const |
bool | degenerate () const |
real | volume () const |
bool | operator== (const BoundingSphere &rhs) |
bool | operator!= (const BoundingSphere &rhs) |
Static Public Member Functions | |
static BoundingSphere< real > | null () |
Private Attributes | |
Vector3< real > | mCenter |
float32 | mRadius |
Sirikata::BoundingSphere< real >::BoundingSphere | ( | ) | [inline] |
Referenced by Sirikata::BoundingSphere< real >::merge().
Sirikata::BoundingSphere< real >::BoundingSphere | ( | const Vector3< real > & | center, |
float | radius | ||
) | [inline] |
Vector3<real> Sirikata::BoundingSphere< real >::center | ( | ) | const [inline] |
References Sirikata::BoundingSphere< real >::mCenter.
Referenced by Sirikata::BoundingSphere< real >::BoundingSphere().
bool Sirikata::BoundingSphere< real >::contains | ( | const BoundingSphere< real > & | other, |
real | epsilon | ||
) | const [inline] |
bool Sirikata::BoundingSphere< real >::contains | ( | const Vector3< real > & | pt | ) | const [inline] |
bool Sirikata::BoundingSphere< real >::contains | ( | const BoundingSphere< real > & | other | ) | const [inline] |
bool Sirikata::BoundingSphere< real >::degenerate | ( | ) | const [inline] |
References Sirikata::BoundingSphere< real >::mRadius.
Referenced by Sirikata::BoundingSphere< real >::volume().
bool Sirikata::BoundingSphere< real >::invalid | ( | ) | const [inline] |
References Sirikata::BoundingSphere< real >::mRadius.
Referenced by Sirikata::BoundingSphere< real >::merge().
BoundingSphere Sirikata::BoundingSphere< real >::merge | ( | const BoundingSphere< real > & | rhs | ) | const [inline] |
BoundingSphere& Sirikata::BoundingSphere< real >::mergeIn | ( | const BoundingSphere< real > & | rhs | ) | [inline] |
References Sirikata::BoundingSphere< real >::merge().
static BoundingSphere<real> Sirikata::BoundingSphere< real >::null | ( | ) | [inline, static] |
bool Sirikata::BoundingSphere< real >::operator!= | ( | const BoundingSphere< real > & | rhs | ) | [inline] |
bool Sirikata::BoundingSphere< real >::operator== | ( | const BoundingSphere< real > & | rhs | ) | [inline] |
float32 Sirikata::BoundingSphere< real >::radius | ( | ) | const [inline] |
References Sirikata::BoundingSphere< real >::mRadius.
Referenced by Sirikata::BoundingSphere< real >::BoundingSphere().
BoundingSphere<real> Sirikata::BoundingSphere< real >::recenter | ( | const Vector3< real > & | newCenter | ) | [inline] |
real Sirikata::BoundingSphere< real >::volume | ( | ) | const [inline] |
Vector3<real> Sirikata::BoundingSphere< real >::mCenter [private] |
Referenced by Sirikata::BoundingSphere< real >::BoundingSphere(), Sirikata::BoundingSphere< real >::center(), Sirikata::BoundingSphere< real >::contains(), Sirikata::BoundingSphere< real >::merge(), Sirikata::BoundingSphere< real >::operator!=(), Sirikata::BoundingSphere< real >::operator==(), and Sirikata::BoundingSphere< real >::recenter().
float32 Sirikata::BoundingSphere< real >::mRadius [private] |
Referenced by Sirikata::BoundingSphere< real >::BoundingSphere(), Sirikata::BoundingSphere< real >::contains(), Sirikata::BoundingSphere< real >::degenerate(), Sirikata::BoundingSphere< real >::invalid(), Sirikata::BoundingSphere< real >::merge(), Sirikata::BoundingSphere< real >::operator!=(), Sirikata::BoundingSphere< real >::operator==(), Sirikata::BoundingSphere< real >::radius(), Sirikata::BoundingSphere< real >::recenter(), and Sirikata::BoundingSphere< real >::volume().