Refactor: coordinatePointMatrix skip recomputation (#14507)

coordinatePointMatrix is always used with getZoom():
Projection::worldSize(scale) / std::pow(2, z) is computed as
scale * util::tileSize / std::pow(2, z)
scale is equal to std::pow(2, z).
____________________________________=>
Projection::worldSize(scale) / std::pow(2, z) => util::tileSize.
This commit is contained in:
Aleksandar Stojiljkovic
2019-05-13 22:13:37 +03:00
committed by GitHub
parent d2dd3cc2c8
commit 926e8e8a5b
2 changed files with 6 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ private:
// logical dimensions
Size size;
mat4 coordinatePointMatrix(double z) const;
mat4 coordinatePointMatrix() const;
mat4 getPixelMatrix() const;
/** Recenter the map so that the given coordinate is located at the given