Skip to content

Commit

Permalink
[formulas] Fix calculation of t for finding the geodesic scale (M12)
Browse files Browse the repository at this point in the history
  • Loading branch information
adl1995 committed Jun 13, 2018
1 parent 2cba2fa commit d11b716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/geometry/formulas/karney_direct.hpp
Expand Up @@ -250,7 +250,7 @@ class karney_direct

// Find the geodesic scale.
CT const t = k2 * (sin_sigma2 - sin_sigma1) *
(sin_sigma2 * sin_sigma1) / (dn1 + dn2);
(sin_sigma2 + sin_sigma1) / (dn1 + dn2);

result.geodesic_scale = cos_sigma12 +
(t * sin_sigma2 - cos_sigma2 * J12) *
Expand Down

0 comments on commit d11b716

Please sign in to comment.