![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXSphered.h>
Public Attributes | |
FXVec3d | center |
FXdouble | radius |
Friends | |
bool | overlap (const FXRanged &a, const FXSphered &b) |
bool | overlap (const FXSphered &a, const FXRanged &b) |
bool | overlap (const FXSphered &a, const FXSphered &b) |
FXStream & | operator<< (FXStream &store, const FXSphered &sphere) |
FXStream & | operator>> (FXStream &store, FXSphered &sphere) |
Spherical bounds.
|
inline |
Default constructor.
|
inline |
Copy constructor.
Initialize from center and radius.
Initialize from center and radius.
FX::FXSphered::FXSphered | ( | const FXRanged & | bounds | ) |
Initialize sphere to fully contain the given bounding box.
Set value from center and radius.
Set value from center and radius.
References set().
|
inline |
|
inline |
Diameter of sphere.
|
inline |
Test if empty.
Test if sphere contains point x,y,z.
bool FX::FXSphered::contains | ( | const FXVec3d & | p | ) | const |
Test if sphere contains point p.
bool FX::FXSphered::contains | ( | const FXRanged & | box | ) | const |
Test if sphere contains another box.
bool FX::FXSphered::contains | ( | const FXSphered & | sphere | ) | const |
Test if sphere 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.
FXVec3d FX::FXSphered::center |
Referenced by operator!=(), operator=(), operator==(), and set().
FXdouble FX::FXSphered::radius |
Referenced by operator!=(), operator=(), operator==(), and set().
![]() |