#include <EulerAngles.h>
- Author
Definition at line 38 of file EulerAngles.h.
◆ EA
◆ HepEulerAngles() [1/2]
CLHEP::HepEulerAngles::HepEulerAngles |
( |
| ) |
|
|
inline |
◆ HepEulerAngles() [2/2]
CLHEP::HepEulerAngles::HepEulerAngles |
( |
double |
phi, |
|
|
double |
theta, |
|
|
double |
psi |
|
) |
| |
|
inline |
◆ compare()
int CLHEP::HepEulerAngles::compare |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ distance()
double CLHEP::HepEulerAngles::distance |
( |
const HepEulerAngles & |
ex | ) |
const |
|
protected |
Definition at line 65 of file EulerAngles.cc.
65 {
66
67 double thisRep[9];
68 double exRep[9];
69
70 ZMpvEulerAnglesRep ( *this, thisRep );
71 ZMpvEulerAnglesRep ( ex, exRep );
72
73 double sum = 0.0;
74 for (int i = 0; i < 9; i++) {
75 sum += thisRep[i] * exRep[i];
76 }
77
78 double d = 3.0 - sum;
79 return (d >= 0) ? d : 0;
80
81}
Referenced by howNear(), and isNear().
◆ getPhi()
double CLHEP::HepEulerAngles::getPhi |
( |
| ) |
const |
|
inline |
◆ getPsi()
double CLHEP::HepEulerAngles::getPsi |
( |
| ) |
const |
|
inline |
◆ getTheta()
double CLHEP::HepEulerAngles::getTheta |
( |
| ) |
const |
|
inline |
◆ getTolerance()
static double CLHEP::HepEulerAngles::getTolerance |
( |
| ) |
|
|
inlinestatic |
◆ howNear()
double CLHEP::HepEulerAngles::howNear |
( |
const EA & |
ea | ) |
const |
Definition at line 91 of file EulerAngles.cc.
91 {
92
94
95}
double distance(const HepEulerAngles &ex) const
◆ isNear()
bool CLHEP::HepEulerAngles::isNear |
( |
const EA & |
ea, |
|
|
double |
epsilon = tolerance |
|
) |
| const |
Definition at line 84 of file EulerAngles.cc.
84 {
85
87
88}
G4double epsilon(G4double density, G4double temperature)
◆ operator!=()
bool CLHEP::HepEulerAngles::operator!= |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ operator<()
bool CLHEP::HepEulerAngles::operator< |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ operator<=()
bool CLHEP::HepEulerAngles::operator<= |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ operator==()
bool CLHEP::HepEulerAngles::operator== |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ operator>()
bool CLHEP::HepEulerAngles::operator> |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ operator>=()
bool CLHEP::HepEulerAngles::operator>= |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ phi()
double CLHEP::HepEulerAngles::phi |
( |
| ) |
const |
|
inline |
◆ psi()
double CLHEP::HepEulerAngles::psi |
( |
| ) |
const |
|
inline |
◆ set()
EA & CLHEP::HepEulerAngles::set |
( |
double |
phi, |
|
|
double |
theta, |
|
|
double |
psi |
|
) |
| |
|
inline |
◆ setPhi()
EA & CLHEP::HepEulerAngles::setPhi |
( |
double |
phi | ) |
|
|
inline |
◆ setPsi()
EA & CLHEP::HepEulerAngles::setPsi |
( |
double |
psi | ) |
|
|
inline |
◆ setTheta()
EA & CLHEP::HepEulerAngles::setTheta |
( |
double |
theta | ) |
|
|
inline |
◆ setTolerance()
static double CLHEP::HepEulerAngles::setTolerance |
( |
double |
tol | ) |
|
|
inlinestatic |
◆ theta()
double CLHEP::HepEulerAngles::theta |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const EA & |
ea |
|
) |
| |
|
friend |
Definition at line 101 of file EulerAngles.cc.
102{
103 os << "(" << ea.phi() << ", " << ea.theta() << ", " << ea.psi() << ")";
104 return os;
105}
◆ operator>>
std::istream & operator>> |
( |
std::istream & |
is, |
|
|
EA & |
ea |
|
) |
| |
|
friend |
Definition at line 110 of file EulerAngles.cc.
110 {
111 double thePhi;
112 double theTheta;
113 double thePsi;
115 ea.set ( thePhi , theTheta , thePsi );
116 return is;
117}
void ZMinput3doubles(std::istream &is, const char *type, double &x, double &y, double &z)
◆ phi_
double CLHEP::HepEulerAngles::phi_ |
|
protected |
◆ psi_
double CLHEP::HepEulerAngles::psi_ |
|
protected |
◆ theta_
double CLHEP::HepEulerAngles::theta_ |
|
protected |
◆ tolerance
The documentation for this class was generated from the following files: