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

Function PointUToPointD

libs/coding/point_coding.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75m2::PointD PointUToPointD(m2::PointU const & pt, uint8_t coordBits)
76{
77 using mercator::Bounds;
78 return {Uint32ToDouble(pt.x, Bounds::kMinX, Bounds::kMaxX, coordBits),
79 Uint32ToDouble(pt.y, Bounds::kMinY, Bounds::kMaxY, coordBits)};
80}
81
82m2::PointD PointUToPointD(m2::PointU const & pt, uint8_t coordBits, m2::RectD const & limitRect)
83{

Callers 14

ForEachNodeIdxMethod · 0.85
AssignGeometryMethod · 0.85
ForEachNodeIdxMethod · 0.85
LoadPointFunction · 0.85
U2DFunction · 0.85
Int64ToPointObsoleteFunction · 0.85
UNIT_TESTFunction · 0.85
ReadPointDFunction · 0.85
LoadPointsSequenceMethod · 0.85
GetMethod · 0.85
LoadV1Method · 0.85
FromUMethod · 0.85

Calls 5

Uint32ToDoubleFunction · 0.85
minXMethod · 0.80
maxXMethod · 0.80
minYMethod · 0.80
maxYMethod · 0.80

Tested by 2

ForEachNodeIdxMethod · 0.68
UNIT_TESTFunction · 0.68