25 return AuxAngle(numeric_limits<real>::quiet_NaN(),
26 numeric_limits<real>::quiet_NaN());
31 if ( isnan(
tan() ) ||
32 (fabs(_y) > numeric_limits<real>::max()/2 &&
33 fabs(_x) > numeric_limits<real>::max()/2) )
37 real r = hypot(_y, _x),
40 if (isnan(
y))
y = copysign(real(1), _y);
41 if (isnan(
x))
x = copysign(real(1), _x);
46 return AuxAngle(copysign(
y(), p.
y()), copysign(
x(), p.
x()));
52 real
x = _x * p._x - _y * p._y;
53 _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.