20#ifndef HEP_TWOVECTOR_H
21#define HEP_TWOVECTOR_H
31std::ostream &
operator << (std::ostream &,
const Hep2Vector &);
32std::istream &
operator >> (std::istream &, Hep2Vector &);
66 inline double x()
const;
67 inline double y()
const;
80 inline void set (
double x,
double y);
83 inline double phi()
const;
86 inline double mag2()
const;
89 inline double mag()
const;
92 inline double r()
const;
201 static double tolerance;
206static const Hep2Vector X_HAT2(1.0, 0.0);
207static const Hep2Vector Y_HAT2(0.0, 1.0);
211#include "CLHEP/Vector/TwoVector.icc"
G4double epsilon(G4double density, G4double temperature)
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(Hep2Vector &&p)=default
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)