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

Function U2D

libs/coding/geometry_coding.cpp:321–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321m2::PointD U2D(m2::PointU const & p, uint32_t coordBits)
322{
323 m2::PointD const pt = PointUToPointD(p, coordBits);
324 ASSERT(mercator::Bounds::kMinX <= pt.x && pt.y <= mercator::Bounds::kMaxX, (p, pt, coordBits));
325 ASSERT(mercator::Bounds::kMinY <= pt.x && pt.y <= mercator::Bounds::kMaxY, (p, pt, coordBits));
326 return pt;
327}
328
329m2::PointU GetMaxPoint(GeometryCodingParams const & params)
330{

Callers

nothing calls this directly

Calls 2

PointUToPointDFunction · 0.85
ASSERTFunction · 0.85

Tested by

no test coverage detected