|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef FORWARDTRACKER_POINT_H
6 #define FORWARDTRACKER_POINT_H
20 Point(
double,
double,
double);
22 double x()
const {
return m_x; }
23 double y()
const {
return m_y; }
24 double z()
const {
return m_z; }
27 double mag()
const {
return std::sqrt(
mag2()); }
41 std::string
str()
const;
45 void checkIndex(
unsigned int i)
const {
if (
i>2)
throw std::range_error(
"Index of Point is out of range"); }
Point operator-(const Point &lhs, const Point &rhs)
std::ostream & operator<<(std::ostream &, const Beamline &)
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Point operator*(double scalar, const Point &p)
Point & operator*=(double scalar)
TransversePoint transverse() const
Point & operator-=(const Point &p)
Point & operator+=(const Point &p)
Point & operator-=(const TransversePoint &p)
void rotat(double angle, bool bendplane)
double operator[](unsigned int i) const
Point operator+(const Point &lhs, const Point &rhs)
Point & operator+=(const TransversePoint &p)
void checkIndex(unsigned int i) const
double & operator[](unsigned int i)