12 #pragma implementation
15 #include "CLHEP/Vector/Rotation.h"
16 #include "CLHEP/Vector/LorentzRotation.h"
29 double HepRotation::distance2(
const HepLorentzRotation & lt )
const {
33 double bet = b.beta();
34 double bet2 = bet*bet;
36 return bet2/(1-bet2) + distance2(r);
39 double HepRotation::distance2(
const HepBoost & lt )
const {
40 return distance2( HepLorentzRotation(lt));
43 double HepRotation::howNear(
const HepLorentzRotation & lt )
const {
44 return std::sqrt( distance2( lt ) );
47 double HepRotation::howNear(
const HepBoost & lt )
const {
48 return std::sqrt( distance2( lt ) );
51 bool HepRotation::isNear(
const HepLorentzRotation & lt,
53 return distance2( lt ) <= epsilon*
epsilon;
56 bool HepRotation::isNear(
const HepBoost & lt,
58 return distance2( lt ) <= epsilon*
epsilon;
double epsilon(double density, double temperature)