![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Spherical bounds. More...
#include <FXSpheref.h>
Public Member Functions | |
| FXSpheref () | |
| Default constructor; value is not initialized. | |
| FXSpheref (const FXSpheref &sphere) | |
| Copy constructor. | |
| FXSpheref (const FXVec3f &cen, FXfloat rad=0.0f) | |
| Initialize from center and radius. | |
| FXSpheref (FXfloat x, FXfloat y, FXfloat z, FXfloat rad=0.0f) | |
| Initialize from center and radius. | |
| FXSpheref (const FXRangef &bounds) | |
| Initialize sphere to fully contain the given bounding box. | |
| FXSpheref & | operator= (const FXVec3f &cen) |
| Assign with vector. | |
| FXSpheref & | operator= (const FXSpheref &sphere) |
| Assignment. | |
| FXSpheref & | set (const FXSpheref &sphere) |
| Set value from another sphere. | |
| FXSpheref & | set (const FXVec3f &cen, FXfloat rad=0.0f) |
| Set value from center and radius. | |
| FXSpheref & | set (FXfloat x, FXfloat y, FXfloat z, FXfloat rad=0.0f) |
| Set value from center and radius. | |
| FXbool | operator== (const FXSpheref &s) const |
| Comparison. | |
| FXbool | operator!= (const FXSpheref &s) const |
| FXfloat | diameter () const |
| Diameter of sphere. | |
| FXfloat | area () const |
| Area of sphere. | |
| FXfloat | volume () const |
| Volume of sphere. | |
| FXbool | empty () const |
| Test if empty. | |
| FXbool | contains (FXfloat x, FXfloat y, FXfloat z) const |
| Test if sphere contains point x,y,z. | |
| FXbool | contains (const FXVec3f &p) const |
| Test if sphere contains point p. | |
| FXbool | contains (const FXRangef &box) const |
| Test if sphere properly contains another box. | |
| FXbool | contains (const FXSpheref &sphere) const |
| Test if sphere properly contains another sphere. | |
| FXSpheref & | include (FXfloat x, FXfloat y, FXfloat z) |
| Include point. | |
| FXSpheref & | include (const FXVec3f &p) |
| Include point. | |
| FXSpheref & | includeInRadius (FXfloat x, FXfloat y, FXfloat z) |
| Expand radius to include point. | |
| FXSpheref & | includeInRadius (const FXVec3f &p) |
| Expand radius to include point. | |
| FXSpheref & | include (const FXRangef &box) |
| Include given range into this one. | |
| FXSpheref & | includeInRadius (const FXRangef &box) |
| Expand radius to include box. | |
| FXSpheref & | include (const FXSpheref &sphere) |
| Include given sphere into this one. | |
| FXSpheref & | includeInRadius (const FXSpheref &sphere) |
| Expand radius to include sphere. | |
| FXint | intersect (const FXVec4f &plane) const |
| Intersect sphere with normalized plane ax+by+cz+w; returns -1,0,+1. | |
| FXbool | intersect (const FXVec3f &u, const FXVec3f &v) const |
| Intersect sphere with ray u-v. | |
| FXbool | intersect (const FXVec3f &pos, const FXVec3f &dir, FXfloat hit[]) const |
| Intersect box with ray pos+lambda*dir, returning true if hit. | |
| FXSpheref | transform (const FXMat4f &mat) const |
| Transform sphere by 4x4 matrix. | |
| ~FXSpheref () | |
| Destructor. | |
Public Attributes | |
| FXVec3f | center |
| FXfloat | radius |
Spherical bounds.
|
|