CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include "CLHEP/Vector/Rotation.h"
#include "CLHEP/Vector/EulerAngles.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include <iostream>
#include <math.h>
Go to the source code of this file.
Functions | |
void | perturb (int i, const HepRotation &r, HepRotation &rp, double &del) |
bool | compareR (const HepRotation &r1, const HepRotation &r2, double tol) |
bool | test (double phi, double theta, double psi) |
int | main () |
Variables | |
const int | Nperturbs = 24 |
bool compareR | ( | const HepRotation & | r1, | |
const HepRotation & | r2, | |||
double | tol | |||
) |
Definition at line 144 of file eulerTest.cc.
References CLHEP::HepRotation::rep3x3(), CLHEP::HepRep3x3::xx_, CLHEP::HepRep3x3::xy_, CLHEP::HepRep3x3::xz_, CLHEP::HepRep3x3::yx_, CLHEP::HepRep3x3::yy_, CLHEP::HepRep3x3::yz_, CLHEP::HepRep3x3::zx_, CLHEP::HepRep3x3::zy_, and CLHEP::HepRep3x3::zz_.
Referenced by test().
int main | ( | ) |
void perturb | ( | int | i, | |
const HepRotation & | r, | |||
HepRotation & | rp, | |||
double & | del | |||
) |
Definition at line 165 of file eulerTest.cc.
References n_constructors::p0, CLHEP::HepRotation::rep3x3(), CLHEP::HepRotation::set(), CLHEP::HepRep3x3::xx_, CLHEP::HepRep3x3::xy_, CLHEP::HepRep3x3::xz_, CLHEP::HepRep3x3::yx_, CLHEP::HepRep3x3::yy_, CLHEP::HepRep3x3::yz_, CLHEP::HepRep3x3::zx_, CLHEP::HepRep3x3::zy_, and CLHEP::HepRep3x3::zz_.
Referenced by test().
bool test | ( | double | phi, | |
double | theta, | |||
double | psi | |||
) |
Definition at line 25 of file eulerTest.cc.
References compareR(), CLHEP::HepRotation::eulerAngles(), Nperturbs, perturb(), CLHEP::HepRotation::phi(), CLHEP::HepEulerAngles::phi(), CLHEP::HepRotation::psi(), CLHEP::HepRotation::set(), and CLHEP::HepRotation::theta().
const int Nperturbs = 24 |