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