diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Panorama.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx index e9e3e4d..e5d7c5f 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -438,10 +438,7 @@ Panorama::nick(Hill *m) { b = m->height + get_earth_radius(m->phi); c = view_height + get_earth_radius(view_phi); - a = pow(((b * (b - (2.0 * c * cos(m->dist)))) + (c * c)), (1.0 / 2.0)); - beta = acos((-(b*b) + (a*a) + (c*c))/(2 * a * c)); - - return beta - pi_d / 2.0; + return atan((cos(m->dist) * b - c) / (sin(m->dist) * b)); } // return local distance to center of WGS84 ellipsoid |