20#ifndef HEP_TWOVECTOR_H
21#define HEP_TWOVECTOR_H
35std::ostream &
operator << (std::ostream &,
const Hep2Vector &);
36std::istream &
operator >> (std::istream &, Hep2Vector &);
69 inline double x()
const;
70 inline double y()
const;
83 inline void set (
double x,
double y);
86 inline double phi()
const;
89 inline double mag2()
const;
92 inline double mag()
const;
95 inline double r()
const;
132 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
136 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
203 static double tolerance;
208static const Hep2Vector X_HAT2(1.0, 0.0);
209static const Hep2Vector Y_HAT2(0.0, 1.0);
213#include "CLHEP/Vector/TwoVector.icc"
Hep2Vector & operator+=(const Hep2Vector &p)
bool operator==(const Hep2Vector &v) const
bool isOrthogonal(const Hep2Vector &p, double epsilon=tolerance) const
bool operator<=(const Hep2Vector &v) const
Hep2Vector operator-() const
static double getTolerance()
friend std::ostream & operator<<(std::ostream &, const Hep2Vector &)
double dot(const Hep2Vector &p) const
double howOrthogonal(const Hep2Vector &p) const
double operator[](int i) const
double angle(const Hep2Vector &) const
bool isNear(const Hep2Vector &p, double epsilon=tolerance) const
Hep2Vector orthogonal() const
double howNear(const Hep2Vector &p) const
double howParallel(const Hep2Vector &p) const
friend double operator*(const Hep2Vector &a, const Hep2Vector &b)
friend Hep2Vector operator+(const Hep2Vector &a, const Hep2Vector &b)
bool operator!=(const Hep2Vector &v) const
int compare(const Hep2Vector &v) const
void setPolar(double r, double phi)
bool isParallel(const Hep2Vector &p, double epsilon=tolerance) const
Hep2Vector(const Hep3Vector &)
bool operator>(const Hep2Vector &v) const
void set(double x, double y)
double operator()(int i) const
Hep2Vector & operator*=(double a)
bool operator>=(const Hep2Vector &v) const
Hep2Vector & operator=(const Hep2Vector &p)
Hep2Vector(const Hep2Vector &p)
Hep2Vector & operator-=(const Hep2Vector &p)
static double setTolerance(double tol)
bool operator<(const Hep2Vector &v) const
Hep2Vector(double x=0.0, double y=0.0)
friend Hep2Vector operator/(const Hep2Vector &p, double a)
Hep3Vector operator-(const Hep3Vector &, const Hep3Vector &)
Hep3Vector operator+(const Hep3Vector &, const Hep3Vector &)
HepLorentzRotation operator*(const HepRotation &r, const HepLorentzRotation <)
std::istream & operator>>(std::istream &is, HepRandom &dist)
std::ostream & operator<<(std::ostream &os, const HepRandom &dist)
HepLorentzVector operator/(const HepLorentzVector &, double a)