51 FXRangef(
FXfloat xlo,
FXfloat xhi,
FXfloat ylo,
FXfloat yhi,
FXfloat zlo,
FXfloat zhi):lower(xlo,ylo,zlo),upper(xhi,yhi,zhi){}
112 bool contains(
const FXVec3f& p)
const;
115 bool contains(
const FXRangef& bounds)
const;
118 bool contains(
const FXSpheref& sphere)
const;
158 extern FXAPI bool overlap(
const FXRangef& a,
const FXRangef& b);
160 extern FXAPI FXRangef
unite(
const FXRangef& a,
const FXRangef& b);
161 extern FXAPI FXRangef
intersect(
const FXRangef& a,
const FXRangef& b);
163 extern FXAPI FXStream&
operator<<(FXStream& store,
const FXRangef& bounds);
FXVec2d lo(const FXVec2d &a, const FXVec2d &b)
Definition: FXVec2d.h:174
FXStream & operator>>(FXStream &store, FXDate &d)
FXRangef & set(FXfloat xlo, FXfloat xhi, FXfloat ylo, FXfloat yhi, FXfloat zlo, FXfloat zhi)
Set value from six numbers.
Definition: FXRangef.h:66
FXVec3f lower
Definition: FXRangef.h:37
FXfloat width() const
Width of box.
Definition: FXRangef.h:79
FXExtentd intersect(const FXExtentd &a, const FXExtentd &b)
const FXVec3f & operator[](FXint i) const
Indexing with 0..1.
Definition: FXRangef.h:72
FXRangef & set(const FXVec3f &lo, const FXVec3f &hi)
Set value from two vectors.
Definition: FXRangef.h:63
FXfloat depth() const
Depth of box.
Definition: FXRangef.h:85
#define FXAPI
Definition: fxdefs.h:122
FXRangef(const FXRangef &bounds)
Copy constructor.
Definition: FXRangef.h:45
FXExtentd unite(const FXExtentd &a, const FXExtentd &b)
FXRangef(const FXVec3f &lo, const FXVec3f &hi)
Initialize from two vectors.
Definition: FXRangef.h:48
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:99
int FXint
Definition: fxdefs.h:397
FXVec3f & operator[](FXint i)
Indexing with 0..1.
Definition: FXRangef.h:69
bool overlap(const FXExtentd &a, const FXExtentd &b)
FXVec2d hi(const FXVec2d &a, const FXVec2d &b)
Definition: FXVec2d.h:175
Single-precision 3-element vector.
Definition: FXVec3f.h:36
Spherical bounds.
Definition: FXSpheref.h:35
Bounds.
Definition: FXRangef.h:35
bool operator==(const FXRangef &r) const
Comparison.
Definition: FXRangef.h:75
float FXfloat
Definition: fxdefs.h:398
FXRangef()
Default constructor.
Definition: FXRangef.h:42
FXRangef(FXfloat xlo, FXfloat xhi, FXfloat ylo, FXfloat yhi, FXfloat zlo, FXfloat zhi)
Initialize from six numbers.
Definition: FXRangef.h:51
FXVec3f upper
Definition: FXRangef.h:38
FXVec4d plane(const FXVec4d &vec)
FXStream & operator<<(FXStream &store, const FXDate &d)
FXRangef & set(const FXRangef &bounds)
Set value from another range.
Definition: FXRangef.h:60
FXfloat height() const
Height of box.
Definition: FXRangef.h:82
FXRangef & operator=(const FXRangef &bounds)
Assignment.
Definition: FXRangef.h:57
bool operator!=(const FXRangef &r) const
Definition: FXRangef.h:76
FXVec3f corner(FXint c) const
Get corner number 0..7.
Definition: FXRangef.h:142
Single-precision 4-element vector.
Definition: FXVec4f.h:35