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

Function DecodePointDeltaFromUint

libs/coding/geometry_coding.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67m2::PointU DecodePointDeltaFromUint(uint64_t delta, m2::PointU const & prediction)
68{
69 uint32_t x, y;
70 bits::BitwiseSplit(delta, x, y);
71 return m2::PointU(prediction.x + bits::ZigZagDecode(x), prediction.y + bits::ZigZagDecode(y));
72}
73
74m2::PointU PredictPointInPolyline(m2::PointD const & maxPoint, m2::PointU const & p1, m2::PointU const & p2,
75 m2::PointU const & p3)

Callers 12

LoadPointFunction · 0.85
DecodePolylinePrev1Function · 0.85
DecodePolylinePrev2Function · 0.85
DecodePolylinePrev3Function · 0.85
DecodeTriangleStripFunction · 0.85
DecodeTrianglesFunction · 0.85
UNIT_TESTFunction · 0.85
InitMethod · 0.85
DecodePointMethod · 0.85
LoadPointMethod · 0.85
ParseCommonMethod · 0.85
operator()Method · 0.85

Calls 2

BitwiseSplitFunction · 0.85
ZigZagDecodeFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.68