diff options
Diffstat (limited to 'src/mbgl/util/tile_cover.cpp')
-rw-r--r-- | src/mbgl/util/tile_cover.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mbgl/util/tile_cover.cpp b/src/mbgl/util/tile_cover.cpp index 6efff4bb57..f2bda3f45b 100644 --- a/src/mbgl/util/tile_cover.cpp +++ b/src/mbgl/util/tile_cover.cpp @@ -8,25 +8,6 @@ namespace mbgl { namespace { -// Has floating point x/y coordinates. -// Used for computing the tiles that need to be visible in the viewport. -class TileCoordinate { -public: - double x, y; - - static TileCoordinate fromLatLng(const TransformState& state, double zoom, const LatLng& latLng) { - const double scale = std::pow(2, zoom - state.getZoom()); - return { - state.lngX(latLng.longitude) * scale / util::tileSize, - state.latY(latLng.latitude) * scale / util::tileSize, - }; - } - - static TileCoordinate fromScreenCoordinate(const TransformState& state, double zoom, const ScreenCoordinate& point) { - return fromLatLng(state, zoom, state.screenCoordinateToLatLng(point)); - } -}; - // Taken from polymaps src/Layer.js // https://github.com/simplegeo/polymaps/blob/master/src/Layer.js#L333-L383 struct edge { |