![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXSpheref.h>
Public Member Functions | |
| FXSpheref () | |
| FXSpheref (const FXSpheref &sphere) | |
| FXSpheref (const FXVec3f &cen, FXfloat rad=0.0f) | |
| FXSpheref (FXfloat x, FXfloat y, FXfloat z, FXfloat rad=0.0f) | |
| FXSpheref (const FXRangef &bounds) | |
| FXSpheref & | operator= (const FXSpheref &sphere) |
| FXfloat | diameter () const |
| FXbool | empty () const |
| FXbool | contains (FXfloat x, FXfloat y, FXfloat z) const |
| FXbool | contains (const FXVec3f &p) const |
| FXbool | contains (const FXRangef &box) const |
| FXbool | contains (const FXSpheref &sphere) const |
| FXSpheref & | include (FXfloat x, FXfloat y, FXfloat z) |
| FXSpheref & | include (const FXVec3f &p) |
| FXSpheref & | include (const FXRangef &box) |
| FXSpheref & | include (const FXSpheref &sphere) |
| FXint | intersect (const FXVec4f &plane) const |
| FXbool | intersect (const FXVec3f &u, const FXVec3f &v) const |
Public Attributes | |
| FXVec3f | center |
| FXfloat | radius |
Friends | |
| FXbool | overlap (const FXRangef &a, const FXSpheref &b) |
| FXbool | overlap (const FXSpheref &a, const FXRangef &b) |
| FXbool | overlap (const FXSpheref &a, const FXSpheref &b) |
| FXStream & | operator<< (FXStream &store, const FXSpheref &sphere) |
| FXStream & | operator>> (FXStream &store, FXSpheref &sphere) |
|
|
Default constructor.
|
|
|
Copy constructor.
|
|
||||||||||||
|
Initialize from center and radius.
|
|
||||||||||||||||||||
|
Initialize from center and radius.
|
|
|
Initialize sphere to fully contain the given bounding box.
|
|
|
Assignment.
|
|
|
Diameter of sphere.
|
|
|
Test if empty.
|
|
||||||||||||||||
|
Test if sphere contains point x,y,z.
|
|
|
Test if sphere contains point p.
|
|
|
Test if sphere properly contains another box.
|
|
|
Test if sphere properly contains another sphere.
|
|
||||||||||||||||
|
Include point.
|
|
|
Include point.
|
|
|
Include given range into this one.
|
|
|
Include given sphere into this one.
|
|
|
Intersect sphere with normalized plane ax+by+cz+w; returns -1,0,+1.
|
|
||||||||||||
|
Intersect sphere with ray u-v.
|
|
||||||||||||
|
Test if box overlaps with sphere.
|
|
||||||||||||
|
Test if sphere overlaps with box.
|
|
||||||||||||
|
Test if spheres overlap.
|
|
||||||||||||
|
Save object to a stream.
|
|
||||||||||||
|
Load object from a stream.
|
|
|