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:
committed by
GitHub
parent
d2dd3cc2c8
commit
926e8e8a5b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user