General purpose bounding sphere class for enclosing nodes/objects/vertices.
General purpose bounding sphere class for enclosing nodes/objects/vertices. Used to bound internal osg::Node's in the scene, to assist in view frustrum culling etc. Similar in function to BoundingBox but is quicker for evaluating culling, but generally encloses a greater volume than a BoundingBox so will not cull so aggressively.
float _radius
BoundingSphere()
void init()
bool isValid() const
const Vec3& center() const
Vec3& center()
float radius() const
float& radius()
float radius2() const
void expandBy(const Vec3& v)
void expandRadiusBy(const Vec3& v)
void expandBy(const BoundingSphere& sh)
void expandRadiusBy(const BoundingSphere& sh)
bool contains(const Vec3& v)
Alphabetic index HTML hierarchy of classes or Java