MCPcopy Create free account
hub / github.com/comaps/comaps / RectByCenterXYAndOffset

Function RectByCenterXYAndOffset

libs/geometry/mercator.cpp:102–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102m2::RectD RectByCenterXYAndOffset(m2::PointD const & center, double offset)
103{
104 return {ClampX(center.x - offset), ClampY(center.y - offset), ClampX(center.x + offset), ClampY(center.y + offset)};
105}
106
107m2::RectD RectByCenterLatLonAndSizeInMeters(double lat, double lon, double size)
108{

Callers 1

WithPostcodesMethod · 0.85

Calls 2

ClampXFunction · 0.85
ClampYFunction · 0.85

Tested by

no test coverage detected