Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <TwoVector.h>
Public Types | |
enum | { X =0 , Y =1 , NUM_COORDINATES =2 , SIZE =NUM_COORDINATES } |
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) |
Static Public Attributes | |
static const int | ZMpvToleranceTicks = 100 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Hep2Vector &q) |
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 44 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 |
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 |
Definition at line 106 of file TwoVector.cc.
bool CLHEP::Hep2Vector::operator<= | ( | const Hep2Vector & | v | ) | const |
Definition at line 112 of file TwoVector.cc.
|
inline |
|
inlinedefault |
|
inline |
bool CLHEP::Hep2Vector::operator> | ( | const Hep2Vector & | v | ) | const |
Definition at line 103 of file TwoVector.cc.
bool CLHEP::Hep2Vector::operator>= | ( | const Hep2Vector & | v | ) | const |
Definition at line 109 of file TwoVector.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CLHEP::Hep2Vector::rotate | ( | double | aangle | ) |
Definition at line 53 of file TwoVector.cc.
|
inline |
Referenced by G4Torus::CalculateExtent(), G4GeomTools::DiskExtent(), G4GeomTools::DiskExtent(), and CLHEP::operator>>().
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 20 of file TwoVector.cc.
|
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(), G4ExtrudedSolid::BoundingLimits(), G4GenericPolycone::BoundingLimits(), G4Polycone::BoundingLimits(), G4Sphere::BoundingLimits(), G4Torus::BoundingLimits(), G4Tubs::BoundingLimits(), G4TwistedTubs::BoundingLimits(), G4ExtrudedSolid::CalculateExtent(), G4GenericTrap::CalculateExtent(), G4Torus::CalculateExtent(), G4GenericTrap::CreatePolyhedron(), G4TessellatedGeometryAlgorithms::cross(), G4GenericTrap::GetCubicVolume(), G4Ellipsoid::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), G4EllipticalTube::GetPointOnSurface(), G4GenericTrap::GetPointOnSurface(), howOrthogonal(), howParallel(), G4GeomTools::IsConvex(), isOrthogonal(), isParallel(), operator()(), G4GeomTools::PointInPolygon(), G4GeomTools::PointInTriangle(), G4GeomTools::RemoveRedundantVertices(), G4GeomTools::SphereExtent(), and G4GDMLWriteSolids::XtruWrite().
|
inline |
Referenced by G4PolyPhiFace::Area2(), G4PolyPhiFace::Between(), G4Cons::BoundingLimits(), G4CutTubs::BoundingLimits(), G4ExtrudedSolid::BoundingLimits(), G4GenericPolycone::BoundingLimits(), G4Polycone::BoundingLimits(), G4Sphere::BoundingLimits(), G4Torus::BoundingLimits(), G4Tubs::BoundingLimits(), G4TwistedTubs::BoundingLimits(), G4ExtrudedSolid::CalculateExtent(), G4GenericTrap::CalculateExtent(), G4Torus::CalculateExtent(), G4GenericTrap::CreatePolyhedron(), G4TessellatedGeometryAlgorithms::cross(), G4Ellipsoid::GetPointOnSurface(), G4EllipticalCone::GetPointOnSurface(), G4EllipticalTube::GetPointOnSurface(), G4GenericTrap::GetPointOnSurface(), howOrthogonal(), howParallel(), G4GeomTools::IsConvex(), isOrthogonal(), isParallel(), operator()(), G4GeomTools::PointInPolygon(), G4GeomTools::PointInTriangle(), G4GeomTools::RemoveRedundantVertices(), 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.
|
static |
Definition at line 193 of file TwoVector.h.