76 bool empty()
const {
return radius<0.0f; }
82 bool contains(
const FXVec3f& p)
const;
85 bool contains(
const FXRangef& box)
const;
88 bool contains(
const FXSpheref& sphere)
const;
137 extern FXAPI bool overlap(
const FXRangef& a,
const FXSpheref& b);
138 extern FXAPI bool overlap(
const FXSpheref& a,
const FXRangef& b);
139 extern FXAPI bool overlap(
const FXSpheref& a,
const FXSpheref& b);
141 extern FXAPI FXStream&
operator<<(FXStream& store,
const FXSpheref& sphere);
FXStream & operator>>(FXStream &store, FXDate &d)
FXSpheref(const FXSpheref &sphere)
Copy constructor.
Definition: FXSpheref.h:45
FXSpheref & operator=(const FXSpheref &sphere)
Assignment.
Definition: FXSpheref.h:57
FXExtentd intersect(const FXExtentd &a, const FXExtentd &b)
bool operator==(const FXSpheref &s) const
Comparison.
Definition: FXSpheref.h:69
#define FXAPI
Definition: fxdefs.h:122
FXfloat diameter() const
Diameter of sphere.
Definition: FXSpheref.h:73
FXfloat radius
Definition: FXSpheref.h:38
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:99
int FXint
Definition: fxdefs.h:397
bool overlap(const FXExtentd &a, const FXExtentd &b)
FXSpheref(const FXVec3f &cen, FXfloat rad=0.0f)
Initialize from center and radius.
Definition: FXSpheref.h:48
FXSpheref & set(const FXSpheref &sphere)
Set value from another sphere.
Definition: FXSpheref.h:60
Single-precision 3-element vector.
Definition: FXVec3f.h:36
bool operator!=(const FXSpheref &s) const
Definition: FXSpheref.h:70
Spherical bounds.
Definition: FXSpheref.h:35
Bounds.
Definition: FXRangef.h:35
float FXfloat
Definition: fxdefs.h:398
FXVec3f center
Definition: FXSpheref.h:37
FXSpheref & set(const FXVec3f &cen, FXfloat rad)
Set value from center and radius.
Definition: FXSpheref.h:63
FXSpheref(FXfloat x, FXfloat y, FXfloat z, FXfloat rad=0.0f)
Initialize from center and radius.
Definition: FXSpheref.h:51
FXVec4d plane(const FXVec4d &vec)
FXStream & operator<<(FXStream &store, const FXDate &d)
FXSpheref()
Default constructor.
Definition: FXSpheref.h:42
bool empty() const
Test if empty.
Definition: FXSpheref.h:76
FXSpheref & set(FXfloat x, FXfloat y, FXfloat z, FXfloat rad)
Set value from center and radius.
Definition: FXSpheref.h:66
Single-precision 4-element vector.
Definition: FXVec4f.h:35