#include <GeoSphere.h>
Public Member Functions | |
Sphere () | |
Default ctor. More... | |
virtual | ~Sphere () |
Default dtor. More... | |
Sphere (const double &x, const double &y, const double &z, const double &r) | |
Alternative ctor (0) More... | |
Sphere (const Point_t ¢er, const double r=0) | |
Altenartive ctor (1) - 1 Point. More... | |
Sphere (const Point_t &pt1, const Point_t &pt2) | |
Alternative ctor (2) - 2 Points. More... | |
Sphere (const Point_t &A, const Point_t &B, const Point_t &C) | |
Alternative ctor (3) - 3 Points. More... | |
Sphere (const Point_t &A, const Point_t &B, const Point_t &C, const Point_t &D) | |
Sphere (const std::vector< ::geoalgo::Point_t > &pts) | |
const Point_t & | Center () const |
Center getter. More... | |
double | Radius () const |
Radius getter. More... | |
void | Center (const double x, const double y, const double z) |
Center setter. More... | |
void | Center (const Point_t &pt) |
Center setter. More... | |
void | Radius (const double &r) |
Radius setter. More... | |
bool | Contain (const Point_t &p) const |
Judge if a point is contained within a sphere. More... | |
template<class T > | |
Sphere (const T &pt1, const T &pt2) | |
template<class T > | |
Sphere (const T &A, const T &B, const T &C) | |
template<class T > | |
Sphere (const T &A, const T &B, const T &C, const T &D) | |
template<class T > | |
Sphere (const std::vector< T > &pts) | |
template<class T > | |
void | Center (const T &pt) |
template<class T > | |
bool | Contain (const T &p) const |
Sphere () | |
Default ctor. More... | |
virtual | ~Sphere () |
Default dtor. More... | |
Sphere (const double &x, const double &y, const double &z, const double &r) | |
Alternative ctor (0) More... | |
Sphere (const Point_t ¢er, const double r=0) | |
Altenartive ctor (1) - 1 Point. More... | |
Sphere (const Point_t &pt1, const Point_t &pt2) | |
Alternative ctor (2) - 2 Points. More... | |
Sphere (const Point_t &A, const Point_t &B, const Point_t &C) | |
Alternative ctor (3) - 3 Points. More... | |
Sphere (const Point_t &A, const Point_t &B, const Point_t &C, const Point_t &D) | |
Sphere (const std::vector< ::geoalgo::Point_t > &pts) | |
const Point_t & | Center () const |
Center getter. More... | |
double | Radius () const |
Radius getter. More... | |
void | Center (const double x, const double y, const double z) |
Center setter. More... | |
void | Center (const Point_t &pt) |
Center setter. More... | |
void | Radius (const double &r) |
Radius setter. More... | |
bool | Contain (const Point_t &p) const |
Judge if a point is contained within a sphere. More... | |
template<class T > | |
Sphere (const T &pt1, const T &pt2) | |
template<class T > | |
Sphere (const T &A, const T &B, const T &C) | |
template<class T > | |
Sphere (const T &A, const T &B, const T &C, const T &D) | |
template<class T > | |
Sphere (const std::vector< T > &pts) | |
template<class T > | |
void | Center (const T &pt) |
template<class T > | |
bool | Contain (const T &p) const |
Protected Member Functions | |
void | compat (const Point_t &p, const double r=0) const |
3D point compatibility check More... | |
void | compat (const double &r) const |
Positive radius compatibility check. More... | |
void | compat (const Point_t &p, const double r=0) const |
3D point compatibility check More... | |
void | compat (const double &r) const |
Positive radius compatibility check. More... | |
Protected Attributes | |
Point_t | _center |
Center of Sphere. More... | |
double | _radius |
Radius of Sphere. More... | |
Definition at line 27 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
geoalgo::Sphere::Sphere | ( | ) |
Default ctor.
Definition at line 8 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
|
inlinevirtual |
Default dtor.
Definition at line 32 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
geoalgo::Sphere::Sphere | ( | const double & | x, |
const double & | y, | ||
const double & | z, | ||
const double & | r | ||
) |
Alternative ctor (0)
Definition at line 12 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
geoalgo::Sphere::Sphere | ( | const Point_t & | center, |
const double | r = 0 |
||
) |
Altenartive ctor (1) - 1 Point.
Definition at line 16 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
Alternative ctor (2) - 2 Points.
Definition at line 20 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
Alternative ctor (3) - 3 Points.
Definition at line 31 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
geoalgo::Sphere::Sphere | ( | const Point_t & | A, |
const Point_t & | B, | ||
const Point_t & | C, | ||
const Point_t & | D | ||
) |
Definition at line 183 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
geoalgo::Sphere::Sphere | ( | const std::vector< ::geoalgo::Point_t > & | pts | ) |
Definition at line 322 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
|
inline |
Definition at line 93 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 97 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 101 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 105 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
geoalgo::Sphere::Sphere | ( | ) |
Default ctor.
|
inlinevirtual |
Default dtor.
Definition at line 30 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoSphere.h.
geoalgo::Sphere::Sphere | ( | const double & | x, |
const double & | y, | ||
const double & | z, | ||
const double & | r | ||
) |
Alternative ctor (0)
geoalgo::Sphere::Sphere | ( | const Point_t & | center, |
const double | r = 0 |
||
) |
Altenartive ctor (1) - 1 Point.
Alternative ctor (2) - 2 Points.
Alternative ctor (3) - 3 Points.
geoalgo::Sphere::Sphere | ( | const Point_t & | A, |
const Point_t & | B, | ||
const Point_t & | C, | ||
const Point_t & | D | ||
) |
geoalgo::Sphere::Sphere | ( | const std::vector< ::geoalgo::Point_t > & | pts | ) |
|
inline |
Definition at line 91 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 95 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 99 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 103 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoSphere.h.
const Point_t& geoalgo::Sphere::Center | ( | ) | const |
Center getter.
const Point_t & geoalgo::Sphere::Center | ( | ) | const |
Center getter.
Definition at line 344 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
void geoalgo::Sphere::Center | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Center setter.
void geoalgo::Sphere::Center | ( | const Point_t & | pt | ) |
Center setter.
void geoalgo::Sphere::Center | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Center setter.
Definition at line 348 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
void geoalgo::Sphere::Center | ( | const Point_t & | pt | ) |
Center setter.
Definition at line 351 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
|
inline |
Definition at line 111 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 113 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
|
protected |
3D point compatibility check
|
protected |
Positive radius compatibility check.
|
protected |
3D point compatibility check
Definition at line 363 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
|
protected |
Positive radius compatibility check.
Definition at line 369 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
bool geoalgo::Sphere::Contain | ( | const Point_t & | p | ) | const |
Judge if a point is contained within a sphere.
bool geoalgo::Sphere::Contain | ( | const Point_t & | p | ) | const |
Judge if a point is contained within a sphere.
Definition at line 357 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
|
inline |
Definition at line 114 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoSphere.h.
|
inline |
Definition at line 116 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
double geoalgo::Sphere::Radius | ( | ) | const |
Radius getter.
double geoalgo::Sphere::Radius | ( | ) | const |
Radius getter.
Definition at line 346 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
void geoalgo::Sphere::Radius | ( | const double & | r | ) |
Radius setter.
void geoalgo::Sphere::Radius | ( | const double & | r | ) |
Radius setter.
Definition at line 354 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.cxx.
|
protected |
Center of Sphere.
Definition at line 76 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.
|
protected |
Radius of Sphere.
Definition at line 79 of file larcorealg/larcorealg/GeoAlgo/GeoSphere.h.