20 #ifndef HEP_TWOVECTOR_H 21 #define HEP_TWOVECTOR_H 29 #include "CLHEP/Vector/defs.h" 30 #include "CLHEP/Vector/ThreeVector.h" 36 std::ostream &
operator << (std::ostream &,
const Hep2Vector &);
37 std::istream &
operator >> (std::istream &, Hep2Vector &);
38 inline double operator * (
const Hep2Vector &
a,
const Hep2Vector &
b);
39 inline Hep2Vector
operator * (
const Hep2Vector & p,
double a);
40 inline Hep2Vector
operator * (
double a,
const Hep2Vector & p);
41 Hep2Vector
operator / (
const Hep2Vector & p,
double a);
42 inline Hep2Vector
operator + (
const Hep2Vector &
a,
const Hep2Vector &
b);
43 inline Hep2Vector
operator - (
const Hep2Vector &
a,
const Hep2Vector &
b);
70 inline double x()
const;
71 inline double y()
const;
82 inline void setX(
double x);
83 inline void setY(
double y);
84 inline void set (
double x,
double y);
87 inline double phi()
const;
90 inline double mag2()
const;
93 inline double mag()
const;
96 inline double r()
const;
105 inline void setR(
double r);
133 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
137 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
166 operator Hep3Vector ()
const;
204 static double tolerance;
214 #include "CLHEP/Vector/TwoVector.icc" 216 #ifdef ENABLE_BACKWARDS_COMPATIBILITY 218 using namespace CLHEP;
bool operator==(const Hep2Vector &v) const
Hep3Vector operator+(const Hep3Vector &, const Hep3Vector &)
double operator[](int i) const
bool operator>=(const Hep2Vector &v) const
Hep2Vector & operator+=(const Hep2Vector &p)
double dot(const Hep2Vector &p) const
bool isParallel(const Hep2Vector &p, double epsilon=tolerance) const
HepLorentzVector operator/(const HepLorentzVector &, double a)
bool operator!=(const Hep2Vector &v) const
Hep2Vector operator-() const
Hep2Vector & operator-=(const Hep2Vector &p)
double howNear(const Hep2Vector &p) const
double operator()(int i) const
double howOrthogonal(const Hep2Vector &p) const
Hep2Vector orthogonal() const
HepLorentzRotation operator*(const HepRotation &r, const HepLorentzRotation <)
double angle(const Hep2Vector &) const
friend Hep2Vector operator+(const Hep2Vector &a, const Hep2Vector &b)
static double getTolerance()
bool operator<(const Hep2Vector &v) const
Hep2Vector & operator=(const Hep2Vector &p)
bool operator<=(const Hep2Vector &v) const
Hep2Vector & operator*=(double a)
friend double operator*(const Hep2Vector &a, const Hep2Vector &b)
double howParallel(const Hep2Vector &p) const
static double setTolerance(double tol)
std::istream & operator>>(std::istream &is, HepAxisAngle &aa)
Hep2Vector(double x=0.0, double y=0.0)
bool operator>(const Hep2Vector &v) const
friend Hep2Vector operator/(const Hep2Vector &p, double a)
void setPolar(double r, double phi)
Hep3Vector operator-(const Hep3Vector &, const Hep3Vector &)
bool isNear(const Hep2Vector &p, double epsilon=tolerance) const
bool isOrthogonal(const Hep2Vector &p, double epsilon=tolerance) const
int compare(const Hep2Vector &v) const
std::ostream & operator<<(std::ostream &os, const HepAxisAngle &aa)
friend std::ostream & operator<<(std::ostream &, const Hep2Vector &)