20#ifndef HEP_TWOVECTOR_H
21#define HEP_TWOVECTOR_H
25#include "CLHEP/Vector/defs.h"
26#include "CLHEP/Vector/ThreeVector.h"
32std::ostream &
operator << (std::ostream &,
const Hep2Vector &);
33std::istream &
operator >> (std::istream &, Hep2Vector &);
67 inline double x()
const;
68 inline double y()
const;
81 inline void set (
double x,
double y);
84 inline double phi()
const;
87 inline double mag2()
const;
90 inline double mag()
const;
93 inline double r()
const;
131 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
135 (
const Hep2Vector & p,
double epsilon=tolerance)
const;
202 static double tolerance;
212#include "CLHEP/Vector/TwoVector.icc"
214#ifdef ENABLE_BACKWARDS_COMPATIBILITY
216using namespace CLHEP;
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
static const int ZMpvToleranceTicks
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)
std::istream & operator>>(std::istream &is, HepRandom &dist)
std::ostream & operator<<(std::ostream &s, const HepDiagMatrix &q)
HepMatrix operator+(const HepMatrix &hm1, const HepDiagMatrix &d2)
HepMatrix operator-(const HepMatrix &hm1, const HepDiagMatrix &d2)
HepDiagMatrix operator/(const HepDiagMatrix &hm1, double t)
HepMatrix operator*(const HepMatrix &hm1, const HepDiagMatrix &hm2)