diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-11-10 11:50:04 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-11-11 16:59:49 +0200 |
commit | e2052ea3e46272f5b0eb26643c0d7e70bad46557 (patch) | |
tree | 6f06237a889bc740972845d65d178908d894159a /src/mbgl/util/geo.cpp | |
parent | e5c460f2db3f7506f4fc38b16747f0ace9151017 (diff) | |
download | qtlocation-mapboxgl-e2052ea3e46272f5b0eb26643c0d7e70bad46557.tar.gz |
[core] Added PrecisionPoint to represent pixel points
Diffstat (limited to 'src/mbgl/util/geo.cpp')
-rw-r--r-- | src/mbgl/util/geo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/geo.cpp b/src/mbgl/util/geo.cpp index 035eb2d20a..e82f4afad2 100644 --- a/src/mbgl/util/geo.cpp +++ b/src/mbgl/util/geo.cpp @@ -12,7 +12,7 @@ LatLng::LatLng(const TileID& id) { latitude = 180.0 / M_PI * std::atan(0.5 * (std::exp(n) - std::exp(-n))); } -vec2<double> LatLng::project() const { +PrecisionPoint LatLng::project() const { // Clamp to the latitude limits of Mercator. const double constrainedLatitude = ::fmin(::fmax(latitude, -util::LATITUDE_MAX), util::LATITUDE_MAX); |