web_mercator to double

This commit is contained in:
Fred-Byrd 2018-02-12 15:04:13 -08:00 committed by Patrick Niklaus
parent df9195b939
commit 342da81591

View File

@ -13,8 +13,8 @@ namespace web_mercator
{ {
namespace detail namespace detail
{ {
const constexpr long double DEGREE_TO_RAD = 0.017453292519943295769236907684886; const constexpr double DEGREE_TO_RAD = 0.017453292519943295769236907684886;
const constexpr long double RAD_TO_DEGREE = 1. / DEGREE_TO_RAD; const constexpr double RAD_TO_DEGREE = 1. / DEGREE_TO_RAD;
// radius used by WGS84 // radius used by WGS84
const constexpr double EARTH_RADIUS_WGS84 = 6378137.0; const constexpr double EARTH_RADIUS_WGS84 = 6378137.0;
// earth circumference devided by 2 // earth circumference devided by 2