#include <EulerAngles.h>
- Author
Definition at line 32 of file EulerAngles.h.
◆ EA
◆ HepEulerAngles() [1/2]
CLHEP::HepEulerAngles::HepEulerAngles |
( |
| ) |
|
|
inline |
◆ HepEulerAngles() [2/2]
◆ compare()
int CLHEP::HepEulerAngles::compare |
( |
const EA & |
ea | ) |
const |
|
inline |
◆ distance()
Definition at line 66 of file EulerAngles.cc.
66 {
67
68 double thisRep[9];
69 double exRep[9];
70
71 ZMpvEulerAnglesRep ( *this, thisRep );
72 ZMpvEulerAnglesRep ( ex, exRep );
73
74 double sum = 0.0;
75 for (int i = 0; i < 9; i++) {
76 sum += thisRep[i] * exRep[i];
77 }
78
79 double d = 3.0 - sum;
80 return (d >= 0) ? d : 0;
81
82}
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 92 of file EulerAngles.cc.
92 {
93
95
96}
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()
◆ 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 102 of file EulerAngles.cc.
103{
104 os << "(" << ea.phi() << ", " << ea.theta() << ", " << ea.psi() << ")";
105 return os;
106}
◆ operator>>
std::istream & operator>> |
( |
std::istream & |
is, |
|
|
EA & |
ea |
|
) |
| |
|
friend |
Definition at line 111 of file EulerAngles.cc.
111 {
112 double thePhi;
113 double theTheta;
114 double thePsi;
116 ea.set ( thePhi , theTheta , thePsi );
117 return is;
118}
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: