5 #ifndef BALL_MATHS_SPHERE3_H
6 #define BALL_MATHS_SPHERE3_H
8 #ifdef BALL_HAS_IEEEFP_H
14 #ifndef BALL_MATHS_PLANE3_H
18 #ifndef BALL_MATHS_VECTOR3_H
100 sphere.
p = temp_point;
227 void dump(std::ostream& s = std::cout,
Size depth = 0)
const
235 s <<
" position: " <<
p << std::endl;
238 s <<
" radius: " <<
radius << std::endl;
270 template <
typename T>
275 s >> c >> sphere.
p >> sphere.
radius >>
c;
285 template <
typename T>
286 std::ostream& operator << (std::ostream& s, const TSphere3<T>& sphere)
289 s <<
'(' << sphere.p <<
' ' << sphere.radius <<
')';
303 #endif // BALL_MATHS_SPHERE3_H
bool isLessOrEqual(const T1 &a, const T2 &b)
#define BALL_CREATE(name)
bool isEqual(const T1 &a, const T2 &b)
TSphere3 & operator=(const TSphere3 &sphere)
bool has(const TVector3< T > &point, bool on_surface=false) const
std::istream & operator>>(std::istream &is, TRegularData1D< ValueType > &grid)
Input operator.
void set(const TSphere3 &sphere)
TSphere3(const TVector3< T > &point, const T &radius)
TSphere3< float > Sphere3
bool operator!=(const TSphere3 &sphere) const
BALL_EXTERN_VARIABLE const double c
#define BALL_DUMP_HEADER(os, cl, ob)
bool operator==(const TSphere3 &sphere) const
bool isNotEqual(const T1 &a, const T2 &b)
void dump(std::ostream &s=std::cout, Size depth=0) const
TSphere3(const TSphere3 &sphere)
void set(const TVector3< T > &point, const T &r)
#define BALL_DUMP_STREAM_PREFIX(os)
void swap(TSphere3 &sphere)
#define BALL_DUMP_STREAM_SUFFIX(os)
#define BALL_DUMP_DEPTH(os, depth)