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)
47 throw GeoAlgoException(
"<<Normalize>> cannot normalize 0-length direction vector!");
const Point_t & Start() const
Start getter.
Class def header for a class HalfLine.
Point_t _start
Beginning of the half line.
double Length() const
Compute the length of the vector.
const Vector_t & Dir() const
Direction getter.
void Normalize()
Normalize direction.
HalfLine()
Default constructor.
Vector_t _dir
Direction of the half line from _start.