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