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

Function D2I

generator/coastlines_generator.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30PointT D2I(m2::PointD const & p)
31{
32 m2::PointU const pu = PointDToPointU(p, kPointCoordBits);
33 return PointT(static_cast<int32_t>(pu.x), static_cast<int32_t>(pu.y));
34}
35
36m2::RegionI CreateRegionI(std::vector<m2::PointD> const & poly)
37{

Callers 2

CreateRegionIFunction · 0.70
ProcessCellMethod · 0.70

Calls 1

PointDToPointUFunction · 0.85

Tested by

no test coverage detected