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