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

Function DecodePolylinePrev1

libs/coding/geometry_coding.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void DecodePolylinePrev1(InDeltasT const & deltas, m2::PointU const & basePoint, m2::PointU const & /*maxPoint*/,
121 OutPointsT & points)
122{
123 size_t const count = deltas.size();
124 if (count > 0)
125 {
126 points.push_back(DecodePointDeltaFromUint(deltas[0], basePoint));
127 for (size_t i = 1; i < count; ++i)
128 points.push_back(DecodePointDeltaFromUint(deltas[i], points.back()));
129 }
130}
131
132void EncodePolylinePrev2(InPointsT const & points, m2::PointU const & basePoint, m2::PointU const & maxPoint,
133 OutDeltasT & deltas)

Callers

nothing calls this directly

Calls 4

DecodePointDeltaFromUintFunction · 0.85
backMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected