Geant4-11
|
#include <TwoVector.h>
Public Types | |
enum | { ZMpvToleranceTicks = 100 } |
enum | { X =0 , Y =1 , NUM_COORDINATES =2 , SIZE =NUM_COORDINATES } |
Public Member Functions | |
double | angle (const Hep2Vector &) const |
int | compare (const Hep2Vector &v) const |
double | dot (const Hep2Vector &p) const |
Hep2Vector (const Hep2Vector &p) | |
Hep2Vector (const Hep3Vector &) | |
Hep2Vector (double x=0.0, double y=0.0) | |
Hep2Vector (Hep2Vector &&p)=default | |
double | howNear (const Hep2Vector &p) const |
double | howOrthogonal (const Hep2Vector &p) const |
double | howParallel (const Hep2Vector &p) const |
bool | isNear (const Hep2Vector &p, double epsilon=tolerance) const |
bool | isOrthogonal (const Hep2Vector &p, double epsilon=tolerance) const |
bool | isParallel (const Hep2Vector &p, double epsilon=tolerance) const |
double | mag () const |
double | mag2 () const |
operator Hep3Vector () const | |
bool | operator!= (const Hep2Vector &v) const |
double & | operator() (int i) |
double | operator() (int i) const |
Hep2Vector & | operator*= (double a) |
Hep2Vector & | operator+= (const Hep2Vector &p) |
Hep2Vector | operator- () const |
Hep2Vector & | operator-= (const Hep2Vector &p) |
bool | operator< (const Hep2Vector &v) const |
bool | operator<= (const Hep2Vector &v) const |
Hep2Vector & | operator= (const Hep2Vector &p) |
Hep2Vector & | operator= (Hep2Vector &&p)=default |
bool | operator== (const Hep2Vector &v) const |
bool | operator> (const Hep2Vector &v) const |
bool | operator>= (const Hep2Vector &v) const |
double & | operator[] (int i) |
double | operator[] (int i) const |
Hep2Vector | orthogonal () const |
double | phi () const |
double | r () const |
void | rotate (double) |
void | set (double x, double y) |
void | setMag (double r) |
void | setPhi (double phi) |
void | setPolar (double r, double phi) |
void | setR (double r) |
void | setX (double x) |
void | setY (double y) |
Hep2Vector | unit () const |
double | x () const |
double | y () const |
~Hep2Vector () | |
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 | |
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 &a, const Hep2Vector &b) |
Hep2Vector | operator- (const Hep2Vector &a, const Hep2Vector &b) |
Hep2Vector | operator/ (const Hep2Vector &p, double a) |
std::ostream & | operator<< (std::ostream &, const Hep2Vector &) |
Definition at line 44 of file TwoVector.h.
anonymous enum |
Enumerator | |
---|---|
ZMpvToleranceTicks |
Definition at line 193 of file TwoVector.h.
anonymous enum |
|
inline |
|
inline |
|
inlinedefault |
|
explicit |
|
inline |
|
inline |
int CLHEP::Hep2Vector::compare | ( | const Hep2Vector & | v | ) | const |
Definition at line 88 of file TwoVector.cc.
Referenced by operator<(), operator<=(), operator>(), and operator>=().
|
inline |
|
inlinestatic |
double CLHEP::Hep2Vector::howNear | ( | const Hep2Vector & | p | ) | const |
Definition at line 121 of file TwoVector.cc.
double CLHEP::Hep2Vector::howOrthogonal | ( | const Hep2Vector & | p | ) | const |
Definition at line 162 of file TwoVector.cc.
double CLHEP::Hep2Vector::howParallel | ( | const Hep2Vector & | p | ) | const |
Definition at line 133 of file TwoVector.cc.
bool CLHEP::Hep2Vector::isNear | ( | const Hep2Vector & | p, |
double | epsilon = tolerance |
||
) | const |
Definition at line 116 of file TwoVector.cc.
bool CLHEP::Hep2Vector::isOrthogonal | ( | const Hep2Vector & | p, |
double | epsilon = tolerance |
||
) | const |
Definition at line 177 of file TwoVector.cc.
bool CLHEP::Hep2Vector::isParallel | ( | const Hep2Vector & | p, |
double | epsilon = tolerance |
||
) | const |
Definition at line 149 of file TwoVector.cc.
|
inline |
Referenced by G4TriangularFacet::Intersect().
|
inline |
Referenced by howNear(), howParallel(), G4TessellatedGeometryAlgorithms::IntersectLineAndLineSegment2D(), isNear(), and isParallel().
CLHEP::Hep2Vector::operator Hep3Vector | ( | ) | const |
Definition at line 84 of file TwoVector.cc.
|
inline |
double & CLHEP::Hep2Vector::operator() | ( | int | i | ) |
Definition at line 39 of file TwoVector.cc.
double CLHEP::Hep2Vector::operator() | ( | int | i | ) | const |
Definition at line 27 of file TwoVector.cc.
|
inline |
|
inline |
|
inline |
|
inline |
bool CLHEP::Hep2Vector::operator< | ( | const Hep2Vector & | v | ) | const |
bool CLHEP::Hep2Vector::operator<= | ( | const Hep2Vector & | v | ) | const |
Definition 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.
References compare().
bool CLHEP::Hep2Vector::operator>= | ( | const Hep2Vector & | v | ) | const |
Definition at line 109 of file TwoVector.cc.
References compare().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CLHEP::Hep2Vector::rotate | ( | double | aangle | ) |
|
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.
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(), G4Cons::BoundingLimits(), G4CutTubs::BoundingLimits(), G4Sphere::BoundingLimits(), G4Torus::BoundingLimits(), G4Tubs::BoundingLimits(), G4ExtrudedSolid::BoundingLimits(), G4GenericPolycone::BoundingLimits(), G4Polycone::BoundingLimits(), G4TwistedTubs::BoundingLimits(), G4Torus::CalculateExtent(), G4ExtrudedSolid::CalculateExtent(), G4GenericTrap::CalculateExtent(), G4ExtrudedSolid::ComputeLateralPlanes(), G4GenericTrap::CreatePolyhedron(), G4TessellatedGeometryAlgorithms::cross(), mcscore.MCVertex::dump_vertex(), G4ExtrudedSolid::GetAngle(), G4Ellipsoid::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), G4EllipticalTube::GetPointOnSurface(), G4GenericTrap::GetPointOnSurface(), howOrthogonal(), howParallel(), isOrthogonal(), isParallel(), G4ExtrudedSolid::IsPointInside(), G4ExtrudedSolid::IsSameLine(), G4ExtrudedSolid::IsSameLineSegment(), G4ExtrudedSolid::IsSameSide(), G4GenericTrap::IsSegCrossing(), G4GenericTrap::IsSegCrossingZ(), G4GenericTrap::NormalToPlane(), operator()(), G4GeomTools::PointInPolygon(), mcscore.MCVertex::printout(), G4GeomTools::SphereExtent(), and G4GDMLWriteSolids::XtruWrite().
|
inline |
Referenced by G4PolyPhiFace::Area2(), G4PolyPhiFace::Between(), G4Cons::BoundingLimits(), G4CutTubs::BoundingLimits(), G4Sphere::BoundingLimits(), G4Torus::BoundingLimits(), G4Tubs::BoundingLimits(), G4ExtrudedSolid::BoundingLimits(), G4GenericPolycone::BoundingLimits(), G4Polycone::BoundingLimits(), G4TwistedTubs::BoundingLimits(), G4Torus::CalculateExtent(), G4ExtrudedSolid::CalculateExtent(), G4GenericTrap::CalculateExtent(), G4ExtrudedSolid::ComputeLateralPlanes(), G4GenericTrap::CreatePolyhedron(), G4TessellatedGeometryAlgorithms::cross(), mcscore.MCVertex::dump_vertex(), G4ExtrudedSolid::GetAngle(), G4Ellipsoid::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), G4EllipticalTube::GetPointOnSurface(), G4GenericTrap::GetPointOnSurface(), howOrthogonal(), howParallel(), isOrthogonal(), isParallel(), G4ExtrudedSolid::IsPointInside(), G4ExtrudedSolid::IsSameLine(), G4ExtrudedSolid::IsSameLineSegment(), G4ExtrudedSolid::IsSameSide(), G4GenericTrap::IsSegCrossing(), G4GenericTrap::IsSegCrossingZ(), G4GenericTrap::NormalToPlane(), operator()(), G4GeomTools::PointInPolygon(), mcscore.MCVertex::printout(), G4GeomTools::SphereExtent(), and G4GDMLWriteSolids::XtruWrite().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 61 of file TwoVector.cc.
|
friend |
Definition at line 69 of file TwoVector.cc.
|
private |
Definition at line 197 of file TwoVector.h.
Referenced by compare(), howOrthogonal(), howParallel(), isOrthogonal(), isParallel(), operator()(), and rotate().
|
private |
Definition at line 198 of file TwoVector.h.
Referenced by compare(), howOrthogonal(), howParallel(), isOrthogonal(), isParallel(), operator()(), and rotate().
|
staticprivate |
Definition at line 201 of file TwoVector.h.
Referenced by setTolerance().