Go to the documentation of this file.
22 : m_centre(
Vec3::ZERO),
73 const double r = (
getRadius() + tolerance);
74 return ((
getCentre()-pt).norm2() <= (r*r));
BoundingSphere()
Definition: BoundingSphere.hpp:21
Definition: BoundingSphere.h:28
Vec3 m_centre
Definition: BoundingSphere.h:54
const Vec3 & getCentre() const
Definition: BoundingSphere.hpp:37
bool contains(const Vec3 &pt, double tolerance=0.0) const
Definition: BoundingSphere.hpp:71
BoundingBox get2dBBox() const
Definition: BoundingSphere.hpp:52
3D bounding box
Definition: BoundingBox.h:28
virtual ~BoundingSphere()
Definition: BoundingSphere.hpp:33
Definition: CheckPointable.cpp:17
std::ostream & operator<<(std::ostream &oStream, const SimpleConnectionData &connectionData)
Definition: GeometryReader.cpp:134
double m_radius
Definition: BoundingSphere.h:55
bool operator==(const BoundingSphere &bSphere) const
Definition: BoundingSphere.hpp:61
double getRadius() const
Definition: BoundingSphere.hpp:42
BoundingBox getBBox() const
Definition: BoundingSphere.hpp:47