1 #ifndef BASICTOOL_GEOHALFLINE_CXX
2 #define BASICTOOL_GEOHALFLINE_CXX
13 const double dirx,
const double diry,
const double dirz)
15 , _dir (dirx, diry, dirz)
22 if(start.size()!=3 || dir.size()!=3)
23 throw GeoAlgoException(
"HalfLine ctor accepts only 3D Point!");
34 void HalfLine::Dir(
const double x,
const double y,
const double z)
47 throw GeoAlgoException(
"<<Normalize>> cannot normalize 0-length direction vector!");
process_name opflash particleana ie ie ie z
const Point_t & Start() const
Start getter.
process_name opflash particleana ie x
Point_t _start
Beginning of the half line.
recob::tracking::Point_t Point_t
double Length() const
Compute the length of the vector.
process_name opflash particleana ie ie y
const Vector_t & Dir() const
Direction getter.
void Normalize()
Normalize direction.
HalfLine()
Default constructor.
recob::tracking::Vector_t Vector_t
Vector_t _dir
Direction of the half line from _start.