![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXRangef.h>
FX::FXRangef::FXRangef | ( | ) | [inline] |
Default constructor.
FX::FXRangef::FXRangef | ( | const FXRangef & | bounds | ) | [inline] |
Copy constructor.
Initialize from two vectors.
FX::FXRangef::FXRangef | ( | FXfloat | xlo, | |
FXfloat | xhi, | |||
FXfloat | ylo, | |||
FXfloat | yhi, | |||
FXfloat | zlo, | |||
FXfloat | zhi | |||
) | [inline] |
Initialize from six numbers.
FX::FXRangef::FXRangef | ( | const FXSpheref & | sphere | ) |
Initialize box to fully contain the given bounding sphere.
bool FX::FXRangef::operator== | ( | const FXRangef & | r | ) | const [inline] |
FXfloat FX::FXRangef::width | ( | ) | const [inline] |
Width of box.
FXfloat FX::FXRangef::height | ( | ) | const [inline] |
Height of box.
FXfloat FX::FXRangef::depth | ( | ) | const [inline] |
Depth of box.
FXfloat FX::FXRangef::longest | ( | ) | const |
Longest side.
FXfloat FX::FXRangef::shortest | ( | ) | const |
shortest side
FXfloat FX::FXRangef::diameter | ( | ) | const |
Length of diagonal.
FXfloat FX::FXRangef::radius | ( | ) | const |
Get radius of box.
FXVec3f FX::FXRangef::diagonal | ( | ) | const |
Compute diagonal.
FXVec3f FX::FXRangef::center | ( | ) | const |
Get center of box.
bool FX::FXRangef::empty | ( | ) | const |
Test if empty.
Test if box contains point x,y,z.
bool FX::FXRangef::contains | ( | const FXVec3f & | p | ) | const |
Test if box contains point p.
bool FX::FXRangef::contains | ( | const FXRangef & | bounds | ) | const |
Test if box properly contains another box.
bool FX::FXRangef::contains | ( | const FXSpheref & | sphere | ) | const |
Test if box properly contains sphere.
Intersect box with normalized plane ax+by+cz+w; returns -1,0,+1.
Save object to a stream.
Referenced by operator!=(), operator=(), and operator==().
Referenced by operator!=(), operator=(), and operator==().
![]() |