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

Function EncodePointDeltaAsUint

libs/coding/geometry_coding.cpp:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61uint64_t EncodePointDeltaAsUint(m2::PointU const & actual, m2::PointU const & prediction)
62{
63 return bits::BitwiseMerge(bits::ZigZagEncode(static_cast<int32_t>(actual.x) - static_cast<int32_t>(prediction.x)),
64 bits::ZigZagEncode(static_cast<int32_t>(actual.y) - static_cast<int32_t>(prediction.y)));
65}
66
67m2::PointU DecodePointDeltaFromUint(uint64_t delta, m2::PointU const & prediction)
68{

Callers 13

SerializeForMwmMethod · 0.85
FindStartTriangleMethod · 0.85
CalcDeltaMethod · 0.85
SavePointFunction · 0.85
EncodePolylinePrev1Function · 0.85
EncodePolylinePrev2Function · 0.85
EncodePolylinePrev3Function · 0.85
EncodeTriangleStripFunction · 0.85
operator()Method · 0.85
UNIT_TESTFunction · 0.85
WriteBlockMethod · 0.85
SaveMethod · 0.85

Calls 2

BitwiseMergeFunction · 0.85
ZigZagEncodeFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.68