1 #ifndef BASICTOOL_GEOLINE_CXX
2 #define BASICTOOL_GEOLINE_CXX
13 Line::Line(
const double x1,
const double y1,
const double z1,
14 const double x2,
const double y2,
const double z2)
17 { check_and_raise(_pt1,_pt2); }
22 { check_and_raise(pt1,pt2); }
27 void Line::Pt1(
const double x,
const double y,
const double z)
35 void Line::Pt2(
const double x,
const double y,
const double z)
45 if(p1.size()!=3)
throw GeoAlgoException(
"<<check_and_raise>> Pt1 is not 3 dimensional point!");
46 if(p2.size()!=3)
throw GeoAlgoException(
"<<check_and_raise>> Pt2 is not 3 dimensional point!");
47 if(p1 == p2)
throw GeoAlgoException(
"<<check_and_raise>> Two identical points not allowed for Line ctor!");
process_name opflash particleana ie ie ie z
process_name opflash particleana ie x
const Point_t & Pt2() const
Direction getter.
Point_t _pt1
First point denoting infinite line.
recob::tracking::Point_t Point_t
process_name opflash particleana ie ie y
const Point_t & Pt1() const
Start getter.
Vector_t _pt2
Second point denoting infinite line.
Line()
Default constructor.
physics associatedGroupsWithLeft p1
void check_and_raise(const Point_t &p1, const Point_t &p2) const
Compatibility check.