List of all members.
Detailed Description
Definition at line 13 of file spheref.
Constructor & Destructor Documentation
inlib::spheref::spheref |
( |
const vec3f & |
a_center, |
|
|
float |
a_radius |
|
) |
| [inline] |
Definition at line 15 of file spheref.
:m_center(a_center),m_radius(a_radius)
{}
virtual inlib::spheref::~spheref |
( |
| ) |
[inline, virtual] |
inlib::spheref::spheref |
( |
const spheref & |
a_from | ) |
[inline] |
Definition at line 20 of file spheref.
:m_center(a_from.m_center)
,m_radius(a_from.m_radius)
{}
Member Function Documentation
const vec3f& inlib::spheref::center |
( |
| ) |
const [inline] |
bool inlib::spheref::circumscribe |
( |
const box3f & |
a_box | ) |
[inline] |
Definition at line 32 of file spheref.
{
if(!a_box.center(m_center)) return false;
float dx,dy,dz;
if(!a_box.get_size(dx,dy,dz)) return false;
m_radius = fsqrt(dx*dx + dy*dy + dz*dz)/2.0f;
return true;
}
Definition at line 24 of file spheref.
{
m_center = a_from.m_center;
m_radius = a_from.m_radius;
return *this;
}
float inlib::spheref::radius |
( |
| ) |
const [inline] |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/spheref