14 #ifndef BASICTOOL_GEOSPHERE_H 15 #define BASICTOOL_GEOSPHERE_H 34 Sphere(
double const&
x,
double const&
y,
double const&
z,
double const&
r);
49 Sphere(
const std::vector<::geoalgo::Point_t>& pts);
60 void Center(
double const x,
double const y,
double const z);
62 void Radius(
double const& r);
71 void compat(
double const& r)
const;
99 Sphere(T
const& A, T
const& B, T
const& C, T
const& D)
106 std::vector<::geoalgo::Vector> geo_pts;
107 geo_pts.reserve(pts);
108 for (
auto const& p : pts)
109 geo_pts.emplace_back(p);
110 (*this) =
Sphere(geo_pts);
virtual ~Sphere()
Default dtor.
Point_t const & Center() const
Center getter.
Sphere(T const &pt1, T const &pt2)
bool Contain(T const &p) const
Class def header for a class Point and Vector.
Sphere(T const &A, T const &B, T const &C)
double Radius() const
Radius getter.
Sphere(const std::vector< T > &pts)
void compat(Point_t const &p, double const r=0) const
3D point compatibility check
Point_t _center
Center of Sphere.
double _radius
Radius of Sphere.
Sphere(T const &A, T const &B, T const &C, T const &D)
bool Contain(Point_t const &p) const
Judge if a point is contained within a sphere.