![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Bounds. More...
#include <FXRangef.h>
Public Member Functions | |
| FXRangef () | |
| Default constructor; value is not initialized. | |
| FXRangef (const FXRangef &bounds) | |
| Initialize with another range. | |
| FXRangef (const FXVec3f &p) | |
| Initialize with a single point. | |
| FXRangef (const FXVec3f &l, const FXVec3f &h) | |
| Initialize with corner points. | |
| FXRangef (FXfloat x, FXfloat y, FXfloat z) | |
| Initialize with a single point. | |
| FXRangef (FXfloat xl, FXfloat xh, FXfloat yl, FXfloat yh, FXfloat zl, FXfloat zh) | |
| Initialize with explicit values. | |
| FXRangef (const FXSpheref &sphere) | |
| Initialize box to fully contain the given bounding sphere. | |
| FXRangef & | operator= (const FXVec3f &p) |
| Assign with vector. | |
| FXRangef & | operator= (const FXRangef &bounds) |
| Assignment. | |
| FXRangef & | set (const FXRangef &bounds) |
| Set value from another range. | |
| FXRangef & | set (const FXVec3f &p) |
| Set value from single point. | |
| FXRangef & | set (const FXVec3f &l, const FXVec3f &h) |
| Set value from corner points. | |
| FXRangef & | set (FXfloat x, FXfloat y, FXfloat z) |
| Set value from single point. | |
| FXRangef & | set (FXfloat xl, FXfloat xh, FXfloat yl, FXfloat yh, FXfloat zl, FXfloat zh) |
| Set value from explicit values. | |
| FXVec3f & | operator[] (FXint i) |
| Indexing with 0..1. | |
| const FXVec3f & | operator[] (FXint i) const |
| Indexing with 0..1. | |
| FXbool | operator== (const FXRangef &r) const |
| Comparison. | |
| FXbool | operator!= (const FXRangef &r) const |
| FXfloat | width () const |
| Width of box. | |
| FXfloat | height () const |
| Height of box. | |
| FXfloat | depth () const |
| Depth of box. | |
| FXfloat | area () const |
| Area of box. | |
| FXfloat | volume () const |
| Volume of box. | |
| FXfloat | longest () const |
| Longest side. | |
| FXfloat | shortest () const |
| Shortest side. | |
| FXfloat | diameter () const |
| Length of diagonal. | |
| FXfloat | radius () const |
| Get radius of box. | |
| FXVec3f | diagonal () const |
| Compute diagonal. | |
| FXVec3f | center () const |
| Get center of box. | |
| FXbool | empty () const |
| Test if empty. | |
| FXbool | contains (FXfloat x, FXfloat y, FXfloat z) const |
| Test if box contains point x,y,z. | |
| FXbool | contains (const FXVec3f &p) const |
| Test if box contains point p. | |
| FXbool | contains (const FXRangef &bounds) const |
| Test if box properly contains another box. | |
| FXbool | contains (const FXSpheref &sphere) const |
| Test if box properly contains sphere. | |
| FXRangef & | include (FXfloat x, FXfloat y, FXfloat z) |
| Include point. | |
| FXRangef & | include (const FXVec3f &v) |
| Include point. | |
| FXRangef & | include (const FXRangef &box) |
| Include given range into box. | |
| FXRangef & | include (const FXSpheref &sphere) |
| Include given sphere into this box. | |
| FXint | intersect (const FXVec4f &plane) const |
| Intersect box with normalized plane ax+by+cz+w; returns -1,0,+1. | |
| FXbool | intersect (const FXVec3f &u, const FXVec3f &v) const |
| Intersect box 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. | |
| FXVec3f | corner (FXint c) const |
| Get corner number 0..7. | |
| FXRangef | transform (const FXMat4f &mat) const |
| Transform range by 4x4 matrix. | |
| ~FXRangef () | |
| Destructor. | |
Public Attributes | |
| FXVec3f | lower |
| FXVec3f | upper |
Bounds.
|
|