30 if ( isnan(
tan() ) ||
31 (fabs(_y) > numeric_limits<real>::max()/2 &&
32 fabs(_x) > numeric_limits<real>::max()/2) )
36 real r = hypot(_y, _x),
39 if (isnan(
y))
y = copysign(real(1), _y);
40 if (isnan(
x))
x = copysign(real(1), _x);
45 return AuxAngle(copysign(
y(), p.
y()), copysign(
x(), p.
x()));
51 real
x = _x * p._x - _y * p._y;
52 _y = _y * p._x + _x * p._y;
Header for the GeographicLib::AuxAngle class.
An accurate representation of angles.
AuxAngle normalized() const
AuxAngle & operator+=(const AuxAngle &p)
AuxAngle copyquadrant(const AuxAngle &p) const
Namespace for GeographicLib.