26: dx(v3.x()), dy(v3.y()) {}
45: dx(p.x()), dy(p.y()) {}
56 return (v.
x()==
x() && v.
y()==
y()) ? true :
false;
60 return (v.
x()!=
x() || v.
y()!=
y()) ? true :
false;
86 return dx*p.
x() + dy*p.
y();
94 return std::sqrt(
mag2());
98 return std::sqrt(
mag2());
104 return tot > 0.0 ? p *= (1.0/std::sqrt(tot)) :
Hep2Vector(1,0);
108 double x1 = std::fabs(dx), y1 = std::fabs(dy);
117 return dx == 0.0 && dy == 0.0 ? 0.0 : std::atan2(dy,dx);
122 return ptot2 <= 0.0 ? 0.0 : std::acos(
dot(q)/std::sqrt(ptot2));
127 setX( r1 * std::cos(ph) );
128 setY( r1 * std::sin(ph) );
137 setX( ma * std::cos(phi1) );
138 setY( ma * std::sin(phi1) );
142 setX( r1 * std::cos(phi1) );
143 setY( r1 * std::sin(phi1) );
Hep2Vector & operator+=(const Hep2Vector &p)
bool operator==(const Hep2Vector &v) const
Hep2Vector operator-() const
static double getTolerance()
double dot(const Hep2Vector &p) const
double operator[](int i) const
double angle(const Hep2Vector &) const
Hep2Vector orthogonal() const
bool operator!=(const Hep2Vector &v) const
void setPolar(double r, double phi)
void set(double x, double y)
double operator()(int i) const
Hep2Vector & operator*=(double a)
Hep2Vector & operator=(const Hep2Vector &p)
Hep2Vector & operator-=(const Hep2Vector &p)
Hep2Vector(double x=0.0, double y=0.0)
HepMatrix operator+(const HepMatrix &hm1, const HepDiagMatrix &d2)
HepMatrix operator-(const HepMatrix &hm1, const HepDiagMatrix &d2)
HepMatrix operator*(const HepMatrix &hm1, const HepDiagMatrix &hm2)