[core] Tighten geo.hpp ctors
This commit is contained in:
committed by
John Firebaugh
parent
8877452ec3
commit
2f4d162deb
@@ -34,8 +34,8 @@ LatLngBounds::LatLngBounds(const CanonicalTileID& id)
|
||||
|
||||
ScreenCoordinate EdgeInsets::getCenter(uint16_t width, uint16_t height) const {
|
||||
return {
|
||||
(width - left - right) / 2.0f + left,
|
||||
(height - top - bottom) / 2.0f + top,
|
||||
(width - left() - right()) / 2.0 + left(),
|
||||
(height - top() - bottom()) / 2.0 + top(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user