All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoDirectedLine.cxx
Go to the documentation of this file.
1 #ifndef BASICTOOL_GEODIRECTEDLINE_CXX
2 #define BASICTOOL_GEODIRECTEDLINE_CXX
3 
4 #include "GeoDirectedLine.h"
5 
6 namespace geoalgo {
7 
9  {}
10 
11  DirectedLine::DirectedLine(const double x, const double y, const double z,
12  const double dirx, const double diry, const double dirz)
13  : Line( x, y, z, x+dirx, y+diry, z+dirz)
14  { check_and_raise(_pt1,_pt2); }
15 
17  : Line( pt, pt+dir)
18  { check_and_raise(_pt1,_pt2); }
19 
20  DirectedLine::DirectedLine(const HalfLine& l)
21  : Line( l.Start(), l.Start()+l.Dir() )
22  { check_and_raise(_pt1,_pt2); }
23 
25  { return _pt2 - _pt1; }
26 
27 }
28 #endif
29 
30 
process_name opflash particleana ie ie ie z
process_name opflash particleana ie x
Point_t _pt1
First point denoting infinite line.
recob::tracking::Point_t Point_t
process_name opflash particleana ie ie y
tuple dir
Definition: dropbox.py:28
Vector_t _pt2
Second point denoting infinite line.
recob::tracking::Vector_t Vector_t