#include <EulerAngles.h>
- Author
Definition at line 39 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()
Definition at line 64 of file EulerAngles.cc.
64 {
65
66 double thisRep[9];
67 double exRep[9];
68
69 ZMpvEulerAnglesRep ( *this, thisRep );
70 ZMpvEulerAnglesRep ( ex, exRep );
71
72 double sum = 0.0;
73 for (int i = 0; i < 9; i++) {
74 sum += thisRep[i] * exRep[i];
75 }
76
77 double d = 3.0 - sum;
78 return (d >= 0) ? d : 0;
79
80}
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 90 of file EulerAngles.cc.
90 {
91
93
94}
double distance(const HepEulerAngles &ex) const
◆ isNear()
bool CLHEP::HepEulerAngles::isNear |
( |
const EA & |
ea, |
|
|
double |
epsilon = tolerance |
|
) |
| const |
◆ 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 100 of file EulerAngles.cc.
101{
102 os << "(" << ea.phi() << ", " << ea.theta() << ", " << ea.psi() << ")";
103 return os;
104}
◆ operator>>
std::istream & operator>> |
( |
std::istream & |
is, |
|
|
EA & |
ea |
|
) |
| |
|
friend |
Definition at line 109 of file EulerAngles.cc.
109 {
110 double thePhi;
111 double theTheta;
112 double thePsi;
114 ea.set ( thePhi , theTheta , thePsi );
115 return is;
116}
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: