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

Function PointDToPointU

libs/coding/point_coding.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57m2::PointU PointDToPointU(double x, double y, uint8_t coordBits)
58{
59 using mercator::Bounds;
60 return {DoubleToUint32(x, Bounds::kMinX, Bounds::kMaxX, coordBits),
61 DoubleToUint32(y, Bounds::kMinY, Bounds::kMaxY, coordBits)};
62}
63
64m2::PointU PointDToPointU(m2::PointD const & pt, uint8_t coordBits)
65{

Callers 15

ForEachNodeIdxMethod · 0.85
SerializeForMwmMethod · 0.85
EncodePointMethod · 0.85
D2IFunction · 0.85
WriteOuterTrianglesMethod · 0.85
D2IFunction · 0.85
SavePointFunction · 0.85
SetBasePointMethod · 0.85
D2UFunction · 0.85
PointToInt64ObsoleteFunction · 0.85
UNIT_TESTFunction · 0.85
D2UFunction · 0.85

Calls 5

DoubleToUint32Function · 0.85
minXMethod · 0.80
maxXMethod · 0.80
minYMethod · 0.80
maxYMethod · 0.80

Tested by 3

D2IFunction · 0.68
UNIT_TESTFunction · 0.68
D2UFunction · 0.68