26#include <Inventor/SbVec.h>
Class for representing a sphere.
void setRadius(float r)
Set the radius.
SbSphere()
Default constructor.
void circumscribe(const SbBox3f &box)
Return a sphere containing a given box.
void setValue(const SbVec3f &c, float r)
Change the center and radius.
void setCenter(const SbVec3f &c)
Set the center.
SbSphere(const SbVec3f &c, float r)
Constructor that takes a center and a radius.
float getRadius() const
Return the radius.
SbBool intersect(const SbLine &l, SbVec3f &intersection) const
Intersect line and sphere, returning TRUE if there is an intersection.
SbBool intersect(const SbLine &l, SbVec3f &enter, SbVec3f &exit) const
Intersect line and sphere, returning TRUE if there is an intersection.
const SbVec3f & getCenter() const
Return the center.