11 #pragma implementation
27 if (std::abs(x) <= 1.0)
return std::acos(x);
32 its_d(proper(ddelta)), its_s(std::sin(ddelta)), its_c(std::cos(ddelta))
53 return std::fabs(
its_d );
79 return (
yx() == 0.0 &&
xx() == 0.0) ? 0.0 : std::atan2(
yx(),
xx());
84 return (
yy() == 0.0 &&
xy() == 0.0) ? 0.0 : std::atan2(
yy(),
xy());
89 return (
yz() == 0.0 &&
xz() == 0.0) ? 0.0 : std::atan2(
yz(),
xz());
114 rotation = axisAngle();
120 rotation = axisAngle();
137 return (answer >= 0) ? answer : 0;
141 double sum =
xx() * r.
xx() +
xz() * r.
xz()
144 double answer = 3.0 - sum;
145 return (answer >= 0 ) ? answer : 0;
152 double bet = b.
beta();
153 double bet2 = bet*bet;
175 return (
distance2(r) <= epsilon*epsilon);
178 return (
distance2(r) <= epsilon*epsilon);
181 return (
distance2(lt) <= epsilon*epsilon);
185 return (
distance2(lt) <= epsilon*epsilon);
189 return 2.0 - 2.0 *
its_c;
193 os <<
"\nRotation about Y (" <<
its_d <<
194 ") [cos d = " <<
its_c <<
" sin d = " <<
its_s <<
"]\n";
void set(double x, double y, double z)
double howNear(const HepRotationY &r) const
double distance2(const HepRotationY &r) const
std::ostream & print(std::ostream &os) const
void decompose(HepAxisAngle &rotation, Hep3Vector &boost) const
static double proper(double delta)
void setDelta(double delta)
HepRotationY & set(double delta)
static double safe_acos(double x)
static constexpr double halfpi
HepBoost & set(double betaX, double betaY, double betaZ)
void decompose(Hep3Vector &boost, HepAxisAngle &rotation) const
bool isNear(const HepRotationY &r, double epsilon=Hep4RotationInterface::tolerance) const
HepEulerAngles eulerAngles() const
double epsilon(double density, double temperature)
static constexpr double pi