![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXSpheref.h>
Public Attributes | |
| FXVec3f | center |
| FXfloat | radius |
Friends | |
| bool | overlap (const FXRangef &a, const FXSpheref &b) |
| bool | overlap (const FXSpheref &a, const FXRangef &b) |
| bool | overlap (const FXSpheref &a, const FXSpheref &b) |
| FXStream & | operator<< (FXStream &store, const FXSpheref &sphere) |
| FXStream & | operator>> (FXStream &store, FXSpheref &sphere) |
Spherical bounds.
|
inline |
Default constructor.
|
inline |
Copy constructor.
Initialize from center and radius.
Initialize from center and radius.
| FX::FXSpheref::FXSpheref | ( | const FXRangef & | bounds | ) |
Initialize sphere to fully contain the given bounding box.
Set value from center and radius.
Set value from center and radius.
References FX::FXVec3f::set().
|
inline |
|
inline |
Diameter of sphere.
|
inline |
Test if empty.
Test if sphere contains point x,y,z.
| bool FX::FXSpheref::contains | ( | const FXVec3f & | p | ) | const |
Test if sphere contains point p.
| bool FX::FXSpheref::contains | ( | const FXRangef & | box | ) | const |
Test if sphere properly contains another box.
| bool FX::FXSpheref::contains | ( | const FXSpheref & | sphere | ) | const |
Test if sphere properly contains another sphere.
Expand radius to include point.
Expand radius to include sphere.
Intersect sphere with normalized plane ax+by+cz+w; returns -1,0,+1.
Intersect sphere with ray u-v.
| FXVec3f FX::FXSpheref::center |
Referenced by operator!=(), operator=(), operator==(), and set().
| FXfloat FX::FXSpheref::radius |
Referenced by operator!=(), operator=(), operator==(), and set().
|
|