22static inline double safe_acos (
double x) {
23 if (std::abs(x) <= 1.0)
return std::acos(x);
24 return ( (x>0) ? 0 : CLHEP::pi );
28 its_d(proper(ddelta)), its_s(std::sin(ddelta)), its_c(std::cos(ddelta))
63 return (
yx() == 0.0 &&
xx() == 0.0) ? 0.0 : std::atan2(
yx(),
xx());
68 return (
yy() == 0.0 &&
xy() == 0.0) ? 0.0 : std::atan2(
yy(),
xy());
72 return (
yz() == 0.0 &&
xz() == 0.0) ? 0.0 : std::atan2(
yz(),
xz());
77 return safe_acos(
zx());
82 return safe_acos(
zy());
87 return safe_acos(
zz());
121 return (answer >= 0) ? answer : 0;
125 double sum =
xx() * r.
xx() +
xy() * r.
xy()
128 double answer = 3.0 - sum;
129 return (answer >= 0 ) ? answer : 0;
136 double bet = b.
beta();
137 double bet2 = bet*bet;
173 return 2.0 - 2.0 *
its_c;
177 os <<
"\nRotation about Z (" <<
its_d <<
178 ") [cos d = " <<
its_c <<
" sin d = " <<
its_s <<
"]\n";
double epsilon(double density, double temperature)
void set(double x, double y, double z)
HepBoost & set(double betaX, double betaY, double betaZ)
void decompose(Hep3Vector &boost, HepAxisAngle &rotation) const
double distance2(const HepRotationZ &r) const
HepAxisAngle axisAngle() const
bool isNear(const HepRotationZ &r, double epsilon=Hep4RotationInterface::tolerance) const
static double proper(double delta)
HepRotationZ & set(double delta)
void setDelta(double delta)
void decompose(HepAxisAngle &rotation, Hep3Vector &boost) const
HepEulerAngles eulerAngles() const
std::ostream & print(std::ostream &os) const
double howNear(const HepRotationZ &r) const