diff options
Diffstat (limited to 'src/mbgl/map/transform_state.hpp')
-rw-r--r-- | src/mbgl/map/transform_state.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/map/transform_state.hpp b/src/mbgl/map/transform_state.hpp index 1e4b2054f7..10d2301ea4 100644 --- a/src/mbgl/map/transform_state.hpp +++ b/src/mbgl/map/transform_state.hpp @@ -4,6 +4,7 @@ #include <mbgl/util/geo.hpp> #include <mbgl/util/geometry.hpp> #include <mbgl/util/constants.hpp> +#include <mbgl/util/projection.hpp> #include <mbgl/util/mat4.hpp> #include <cstdint> @@ -88,8 +89,6 @@ private: // logical dimensions uint16_t width = 0, height = 0; - double worldSize() const; - mat4 coordinatePointMatrix(double z) const; mat4 getPixelMatrix() const; @@ -117,8 +116,8 @@ private: double pitch = 0.0; // cache values for spherical mercator math - double Bc = worldSize() / util::DEGREES_MAX; - double Cc = worldSize() / util::M2PI; + double Bc = Projection::worldSize(scale) / util::DEGREES_MAX; + double Cc = Projection::worldSize(scale) / util::M2PI; }; } // namespace mbgl |