29 return std::sqrt(
mag2());
36 std::ostringstream ost;
37 ost<<
"TranversePoint index out of range: "<<i<<
'\n';
38 throw std::range_error(ost.str());
40 if(i == 0){
return m_x;}
47 std::ostringstream ost;
48 ost<<
"TranversePoint index out of range: "<<i<<
'\n';
49 throw std::range_error(ost.str());
52 if(i == 0){
return m_x;}
67 std::ostringstream ost;
68 ost<<std::setprecision(3)<<std::scientific<<
"x\t"<<
m_x<<
" y\t"<<
m_y;
double operator[](unsigned int) const
TransversePoint & operator-=(const TransversePoint &rhs)
TransversePoint & operator*=(double)
TransversePoint & operator+=(const TransversePoint &rhs)
Point operator-(const Point &lhs, const Point &rhs)
Point operator+(const Point &lhs, const Point &rhs)
Point operator*(double, const Point &lhs)
std::ostream & operator<<(std::ostream &os, const Beamline &bl)