Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
CLHEP::Hep2Vector Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/geant4/v4_10_4_p02d/source/geant4.10.04.p02/source/externals/clhep/include/CLHEP/Vector/TwoVector.h"

Public Types

enum  { X =0, Y =1, NUM_COORDINATES =2, SIZE =NUM_COORDINATES }
 
enum  { ZMpvToleranceTicks = 100 }
 

Public Member Functions

 Hep2Vector (double x=0.0, double y=0.0)
 
 Hep2Vector (const Hep2Vector &p)
 
 Hep2Vector (const Hep3Vector &)
 
 ~Hep2Vector ()
 
double x () const
 
double y () const
 
double operator() (int i) const
 
double operator[] (int i) const
 
double & operator() (int i)
 
double & operator[] (int i)
 
void setX (double x)
 
void setY (double y)
 
void set (double x, double y)
 
double phi () const
 
double mag2 () const
 
double mag () const
 
double r () const
 
void setPhi (double phi)
 
void setMag (double r)
 
void setR (double r)
 
void setPolar (double r, double phi)
 
Hep2Vectoroperator= (const Hep2Vector &p)
 
bool operator== (const Hep2Vector &v) const
 
bool operator!= (const Hep2Vector &v) const
 
int compare (const Hep2Vector &v) const
 
bool operator> (const Hep2Vector &v) const
 
bool operator< (const Hep2Vector &v) const
 
bool operator>= (const Hep2Vector &v) const
 
bool operator<= (const Hep2Vector &v) const
 
double howNear (const Hep2Vector &p) const
 
bool isNear (const Hep2Vector &p, double epsilon=tolerance) const
 
double howParallel (const Hep2Vector &p) const
 
bool isParallel (const Hep2Vector &p, double epsilon=tolerance) const
 
double howOrthogonal (const Hep2Vector &p) const
 
bool isOrthogonal (const Hep2Vector &p, double epsilon=tolerance) const
 
Hep2Vectoroperator+= (const Hep2Vector &p)
 
Hep2Vectoroperator-= (const Hep2Vector &p)
 
Hep2Vector operator- () const
 
Hep2Vectoroperator*= (double a)
 
Hep2Vector unit () const
 
Hep2Vector orthogonal () const
 
double dot (const Hep2Vector &p) const
 
double angle (const Hep2Vector &) const
 
void rotate (double)
 
 operator Hep3Vector () const
 

Static Public Member Functions

static double getTolerance ()
 
static double setTolerance (double tol)
 

Private Attributes

double dx
 
double dy
 

Static Private Attributes

static double tolerance
 

Friends

std::ostream & operator<< (std::ostream &, const Hep2Vector &)
 
double operator* (const Hep2Vector &a, const Hep2Vector &b)
 
Hep2Vector operator* (const Hep2Vector &p, double a)
 
Hep2Vector operator* (double a, const Hep2Vector &p)
 
Hep2Vector operator/ (const Hep2Vector &p, double a)
 
Hep2Vector operator+ (const Hep2Vector &a, const Hep2Vector &b)
 
Hep2Vector operator- (const Hep2Vector &a, const Hep2Vector &b)
 

Detailed Description

Author

Definition at line 48 of file TwoVector.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NUM_COORDINATES 
SIZE 

Definition at line 52 of file TwoVector.h.

anonymous enum
Enumerator
ZMpvToleranceTicks 

Definition at line 195 of file TwoVector.h.

Constructor & Destructor Documentation

CLHEP::Hep2Vector::Hep2Vector ( double  x = 0.0,
double  y = 0.0 
)
inline
CLHEP::Hep2Vector::Hep2Vector ( const Hep2Vector p)
inline
CLHEP::Hep2Vector::Hep2Vector ( const Hep3Vector )
explicit
CLHEP::Hep2Vector::~Hep2Vector ( )
inline

Member Function Documentation

double CLHEP::Hep2Vector::angle ( const Hep2Vector ) const
inline
int CLHEP::Hep2Vector::compare ( const Hep2Vector v) const
double CLHEP::Hep2Vector::dot ( const Hep2Vector p) const
inline
static double CLHEP::Hep2Vector::getTolerance ( )
inlinestatic
double CLHEP::Hep2Vector::howNear ( const Hep2Vector p) const
double CLHEP::Hep2Vector::howOrthogonal ( const Hep2Vector p) const
double CLHEP::Hep2Vector::howParallel ( const Hep2Vector p) const
bool CLHEP::Hep2Vector::isNear ( const Hep2Vector p,
double  epsilon = tolerance 
) const
bool CLHEP::Hep2Vector::isOrthogonal ( const Hep2Vector p,
double  epsilon = tolerance 
) const
bool CLHEP::Hep2Vector::isParallel ( const Hep2Vector p,
double  epsilon = tolerance 
) const
double CLHEP::Hep2Vector::mag ( ) const
inline
double CLHEP::Hep2Vector::mag2 ( ) const
inline
CLHEP::Hep2Vector::operator Hep3Vector ( ) const
bool CLHEP::Hep2Vector::operator!= ( const Hep2Vector v) const
inline
double CLHEP::Hep2Vector::operator() ( int  i) const
double& CLHEP::Hep2Vector::operator() ( int  i)
Hep2Vector& CLHEP::Hep2Vector::operator*= ( double  a)
inline
Hep2Vector& CLHEP::Hep2Vector::operator+= ( const Hep2Vector p)
inline
Hep2Vector CLHEP::Hep2Vector::operator- ( ) const
inline
Hep2Vector& CLHEP::Hep2Vector::operator-= ( const Hep2Vector p)
inline
bool CLHEP::Hep2Vector::operator< ( const Hep2Vector v) const
bool CLHEP::Hep2Vector::operator<= ( const Hep2Vector v) const
Hep2Vector& CLHEP::Hep2Vector::operator= ( const Hep2Vector p)
inline
bool CLHEP::Hep2Vector::operator== ( const Hep2Vector v) const
inline
bool CLHEP::Hep2Vector::operator> ( const Hep2Vector v) const
bool CLHEP::Hep2Vector::operator>= ( const Hep2Vector v) const
double CLHEP::Hep2Vector::operator[] ( int  i) const
inline
double& CLHEP::Hep2Vector::operator[] ( int  i)
inline
Hep2Vector CLHEP::Hep2Vector::orthogonal ( ) const
inline
double CLHEP::Hep2Vector::phi ( ) const
inline
double CLHEP::Hep2Vector::r ( ) const
inline
void CLHEP::Hep2Vector::rotate ( double  )
void CLHEP::Hep2Vector::set ( double  x,
double  y 
)
inline
void CLHEP::Hep2Vector::setMag ( double  r)
inline
void CLHEP::Hep2Vector::setPhi ( double  phi)
inline
void CLHEP::Hep2Vector::setPolar ( double  r,
double  phi 
)
inline
void CLHEP::Hep2Vector::setR ( double  r)
inline
static double CLHEP::Hep2Vector::setTolerance ( double  tol)
static
void CLHEP::Hep2Vector::setX ( double  x)
inline
void CLHEP::Hep2Vector::setY ( double  y)
inline
Hep2Vector CLHEP::Hep2Vector::unit ( ) const
inline
double CLHEP::Hep2Vector::x ( ) const
inline
double CLHEP::Hep2Vector::y ( ) const
inline

Friends And Related Function Documentation

double operator* ( const Hep2Vector a,
const Hep2Vector b 
)
friend
Hep2Vector operator* ( const Hep2Vector p,
double  a 
)
friend
Hep2Vector operator* ( double  a,
const Hep2Vector p 
)
friend
Hep2Vector operator+ ( const Hep2Vector a,
const Hep2Vector b 
)
friend
Hep2Vector operator- ( const Hep2Vector a,
const Hep2Vector b 
)
friend
Hep2Vector operator/ ( const Hep2Vector p,
double  a 
)
friend
std::ostream& operator<< ( std::ostream &  ,
const Hep2Vector  
)
friend

Member Data Documentation

double CLHEP::Hep2Vector::dx
private

Definition at line 199 of file TwoVector.h.

double CLHEP::Hep2Vector::dy
private

Definition at line 200 of file TwoVector.h.

double CLHEP::Hep2Vector::tolerance
staticprivate

Definition at line 203 of file TwoVector.h.


The documentation for this class was generated from the following file: