![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXSpheref.h>
Spherical bounds.
FX::FXSpheref::FXSpheref | ( | ) | [inline] |
Default constructor.
FX::FXSpheref::FXSpheref | ( | const FXSpheref & | sphere | ) | [inline] |
Copy constructor.
FX::FXSpheref::FXSpheref | ( | const FXVec3f & | cen, |
FXfloat | rad = 0.0f |
||
) | [inline] |
Initialize from center and radius.
FX::FXSpheref::FXSpheref | ( | FXfloat | x, |
FXfloat | y, | ||
FXfloat | z, | ||
FXfloat | rad = 0.0f |
||
) | [inline] |
Initialize from center and radius.
FX::FXSpheref::FXSpheref | ( | const FXRangef & | bounds | ) |
Initialize sphere to fully contain the given bounding box.
FXSpheref& FX::FXSpheref::set | ( | const FXSpheref & | sphere | ) | [inline] |
FXSpheref& FX::FXSpheref::set | ( | const FXVec3f & | cen, |
FXfloat | rad | ||
) | [inline] |
Set value from center and radius.
Set value from center and radius.
References set().
bool FX::FXSpheref::operator== | ( | const FXSpheref & | s | ) | const [inline] |
FXfloat FX::FXSpheref::diameter | ( | ) | const [inline] |
Diameter of sphere.
bool FX::FXSpheref::empty | ( | ) | const [inline] |
Test if empty.
bool FX::FXSpheref::contains | ( | FXfloat | x, |
FXfloat | y, | ||
FXfloat | z | ||
) | const |
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.
FXSpheref& FX::FXSpheref::include | ( | FXfloat | x, |
FXfloat | y, | ||
FXfloat | z | ||
) |
Include point.
FXSpheref& FX::FXSpheref::include | ( | const FXVec3f & | p | ) |
Include point.
FXSpheref& FX::FXSpheref::includeInRadius | ( | FXfloat | x, |
FXfloat | y, | ||
FXfloat | z | ||
) |
Expand radius to include point.
FXSpheref& FX::FXSpheref::includeInRadius | ( | const FXVec3f & | p | ) |
Expand radius to include point.
FXSpheref& FX::FXSpheref::include | ( | const FXRangef & | box | ) |
Include given range into this one.
FXSpheref& FX::FXSpheref::includeInRadius | ( | const FXRangef & | box | ) |
Expand radius to include box.
FXSpheref& FX::FXSpheref::include | ( | const FXSpheref & | sphere | ) |
Include given sphere into this one.
FXSpheref& FX::FXSpheref::includeInRadius | ( | const FXSpheref & | sphere | ) |
Expand radius to include sphere.
FXint FX::FXSpheref::intersect | ( | const FXVec4f & | plane | ) | const |
Intersect sphere with normalized plane ax+by+cz+w; returns -1,0,+1.
bool FX::FXSpheref::intersect | ( | const FXVec3f & | u, |
const FXVec3f & | v | ||
) | const |
Intersect sphere with ray u-v.
Save object to a stream.
Referenced by operator!=(), operator=(), operator==(), and set().
Referenced by operator!=(), operator=(), and operator==().
![]() |