ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/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 (Hep2Vector &&p)=default | |
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) |
Hep2Vector & | operator= (const Hep2Vector &p) |
Hep2Vector & | operator= (Hep2Vector &&p)=default |
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 |
Hep2Vector & | operator+= (const Hep2Vector &p) |
Hep2Vector & | operator-= (const Hep2Vector &p) |
Hep2Vector | operator- () const |
Hep2Vector & | operator*= (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 = Hep2Vector::ZMpvToleranceTicks * 2.22045e-16 |
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) |
Definition at line 48 of file TwoVector.h.
View newest version in sPHENIX GitHub at line 48 of file TwoVector.h
anonymous enum |
Definition at line 52 of file TwoVector.h.
View newest version in sPHENIX GitHub at line 52 of file TwoVector.h
anonymous enum |
Definition at line 197 of file TwoVector.h.
View newest version in sPHENIX GitHub at line 197 of file TwoVector.h
|
inline |
|
inline |
|
inlinedefault |
|
explicit |
|
inline |
|
inline |
int CLHEP::Hep2Vector::compare | ( | const Hep2Vector & | v | ) | const |
Definition at line 88 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 88 of file TwoVector.cc
Referenced by operator<(), operator<=(), operator>(), and operator>=().
|
inline |
Referenced by howNear(), howOrthogonal(), howParallel(), G4TessellatedGeometryAlgorithms::IntersectLineAndLineSegment2D(), isNear(), isOrthogonal(), and isParallel().
|
inlinestatic |
double CLHEP::Hep2Vector::howNear | ( | const Hep2Vector & | p | ) | const |
Definition at line 121 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 121 of file TwoVector.cc
References d, dot(), and mag2().
double CLHEP::Hep2Vector::howOrthogonal | ( | const Hep2Vector & | p | ) | const |
Definition at line 162 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 162 of file TwoVector.cc
References dot(), dx, dy, x(), and y().
double CLHEP::Hep2Vector::howParallel | ( | const Hep2Vector & | p | ) | const |
Definition at line 133 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 133 of file TwoVector.cc
References dot(), dx, dy, mag2(), x(), and y().
bool CLHEP::Hep2Vector::isNear | ( | const Hep2Vector & | p, |
double | epsilon = tolerance |
||
) | const |
Definition at line 116 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 116 of file TwoVector.cc
References dot(), epsilon(), and mag2().
bool CLHEP::Hep2Vector::isOrthogonal | ( | const Hep2Vector & | p, |
double | epsilon = tolerance |
||
) | const |
Definition at line 177 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 177 of file TwoVector.cc
References dot(), dx, dy, x(), and y().
bool CLHEP::Hep2Vector::isParallel | ( | const Hep2Vector & | p, |
double | epsilon = tolerance |
||
) | const |
Definition at line 149 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 149 of file TwoVector.cc
References dot(), dx, dy, mag2(), x(), and y().
|
inline |
|
inline |
Referenced by howNear(), howParallel(), G4TessellatedGeometryAlgorithms::IntersectLineAndLineSegment2D(), isNear(), isParallel(), and G4GeomTools::RemoveRedundantVertices().
CLHEP::Hep2Vector::operator Hep3Vector | ( | ) | const |
Definition at line 84 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 84 of file TwoVector.cc
|
inline |
double CLHEP::Hep2Vector::operator() | ( | int | i | ) | const |
Definition at line 27 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 27 of file TwoVector.cc
double & CLHEP::Hep2Vector::operator() | ( | int | i | ) |
Definition at line 39 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 39 of file TwoVector.cc
|
inline |
|
inline |
|
inline |
|
inline |
bool CLHEP::Hep2Vector::operator< | ( | const Hep2Vector & | v | ) | const |
Definition at line 106 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 106 of file TwoVector.cc
References compare().
bool CLHEP::Hep2Vector::operator<= | ( | const Hep2Vector & | v | ) | const |
Definition at line 112 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 112 of file TwoVector.cc
References compare().
|
inline |
|
inlinedefault |
|
inline |
bool CLHEP::Hep2Vector::operator> | ( | const Hep2Vector & | v | ) | const |
Definition at line 103 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 103 of file TwoVector.cc
References compare().
bool CLHEP::Hep2Vector::operator>= | ( | const Hep2Vector & | v | ) | const |
Definition at line 109 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 109 of file TwoVector.cc
References compare().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CLHEP::Hep2Vector::rotate | ( | double | aangle | ) |
Definition at line 53 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 53 of file TwoVector.cc
|
inline |
Referenced by G4Orb::CalculateExtent(), G4Torus::CalculateExtent(), G4GeomTools::DiskExtent(), and CLHEP::operator>>().
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 20 of file TwoVector.cc.
View newest version in sPHENIX GitHub at line 20 of file TwoVector.cc
References tolerance.
|
inline |
Referenced by G4GDMLReadSolids::SectionRead(), and G4GDMLReadSolids::TwoDimVertexRead().
|
inline |
Referenced by G4GDMLReadSolids::SectionRead(), and G4GDMLReadSolids::TwoDimVertexRead().
|
inline |
|
inline |
Referenced by G4PolyPhiFace::Area2(), G4PolyPhiFace::Between(), G4GenericPolycone::BoundingLimits(), G4Polycone::BoundingLimits(), G4CutTubs::BoundingLimits(), G4Tubs::BoundingLimits(), G4Torus::BoundingLimits(), G4Cons::BoundingLimits(), G4ExtrudedSolid::BoundingLimits(), G4Sphere::BoundingLimits(), G4GenericTrap::CalculateExtent(), G4Torus::CalculateExtent(), G4ExtrudedSolid::CalculateExtent(), G4ExtrudedSolid::ComputeLateralPlanes(), G4GenericTrap::CreatePolyhedron(), G4TessellatedGeometryAlgorithms::cross(), G4ExtrudedSolid::GetAngle(), G4EllipticalTube::GetPointOnSurface(), G4Ellipsoid::GetPointOnSurface(), G4GenericTrap::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), howOrthogonal(), howParallel(), G4GeomTools::IsConvex(), isOrthogonal(), isParallel(), G4ExtrudedSolid::IsPointInside(), G4ExtrudedSolid::IsSameLine(), G4ExtrudedSolid::IsSameLineSegment(), G4ExtrudedSolid::IsSameSide(), G4GenericTrap::IsSegCrossing(), G4GenericTrap::IsSegCrossingZ(), G4GenericTrap::NormalToPlane(), operator()(), CLHEP::operator/(), CLHEP::operator<<(), G4GeomTools::PointInPolygon(), G4GeomTools::PointInTriangle(), G4GeomTools::QuadArea(), G4GeomTools::RemoveRedundantVertices(), G4GeomTools::SphereExtent(), G4GeomTools::TriangleArea(), PHG4GDMLWriteSolids::XtruWrite(), and G4GDMLWriteSolids::XtruWrite().
|
inline |
Referenced by G4PolyPhiFace::Area2(), G4PolyPhiFace::Between(), G4GenericPolycone::BoundingLimits(), G4Polycone::BoundingLimits(), G4CutTubs::BoundingLimits(), G4Tubs::BoundingLimits(), G4Torus::BoundingLimits(), G4Cons::BoundingLimits(), G4ExtrudedSolid::BoundingLimits(), G4Sphere::BoundingLimits(), G4GenericTrap::CalculateExtent(), G4Torus::CalculateExtent(), G4ExtrudedSolid::CalculateExtent(), G4ExtrudedSolid::ComputeLateralPlanes(), G4GenericTrap::CreatePolyhedron(), G4TessellatedGeometryAlgorithms::cross(), G4ExtrudedSolid::GetAngle(), G4EllipticalTube::GetPointOnSurface(), G4Ellipsoid::GetPointOnSurface(), G4GenericTrap::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), howOrthogonal(), howParallel(), G4GeomTools::IsConvex(), isOrthogonal(), isParallel(), G4ExtrudedSolid::IsPointInside(), G4ExtrudedSolid::IsSameLine(), G4ExtrudedSolid::IsSameLineSegment(), G4ExtrudedSolid::IsSameSide(), G4GenericTrap::IsSegCrossing(), G4GenericTrap::IsSegCrossingZ(), G4GenericTrap::NormalToPlane(), operator()(), CLHEP::operator/(), CLHEP::operator<<(), G4GeomTools::PointInPolygon(), G4GeomTools::PointInTriangle(), G4GeomTools::QuadArea(), G4GeomTools::RemoveRedundantVertices(), G4GeomTools::SphereExtent(), G4GeomTools::TriangleArea(), PHG4GDMLWriteSolids::XtruWrite(), and G4GDMLWriteSolids::XtruWrite().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 201 of file TwoVector.h.
View newest version in sPHENIX GitHub at line 201 of file TwoVector.h
Referenced by compare(), howOrthogonal(), howParallel(), isOrthogonal(), isParallel(), operator()(), and rotate().
|
private |
Definition at line 202 of file TwoVector.h.
View newest version in sPHENIX GitHub at line 202 of file TwoVector.h
Referenced by compare(), howOrthogonal(), howParallel(), isOrthogonal(), isParallel(), operator()(), and rotate().
|
staticprivate |
Definition at line 205 of file TwoVector.h.
View newest version in sPHENIX GitHub at line 205 of file TwoVector.h
Referenced by setTolerance().