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;
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)
std::ostream & print(std::ostream &os) const
std::vector< ExP01TrackerHit * > a
HepBoost & set(double betaX, double betaY, double betaZ)
static double safe_acos(double x)
bool isNear(const HepRotationY &r, double epsilon=Hep4RotationInterface::tolerance) const
static double proper(double delta)
void decompose(HepAxisAngle &rotation, Hep3Vector &boost) const
HepRotationY & set(double delta)
double howNear(const HepRotationY &r) const
double epsilon(double density, double temperature)
void setDelta(double delta)
void decompose(Hep3Vector &boost, HepAxisAngle &rotation) const
static constexpr double halfpi
double distance2(const HepRotationY &r) const
static constexpr double pi
HepEulerAngles eulerAngles() const