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

Function PredictPointInPolyline

libs/coding/geometry_coding.cpp:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56m2::PointU PredictPointInPolyline(m2::PointD const & maxPoint, m2::PointU const & p1, m2::PointU const & p2)
57{
58 return ClampPoint(maxPoint, m2::PointD(p1) + (m2::PointD(p1) - m2::PointD(p2)) / 2.0);
59}
60
61uint64_t EncodePointDeltaAsUint(m2::PointU const & actual, m2::PointU const & prediction)
62{

Callers 5

EncodePolylinePrev2Function · 0.85
DecodePolylinePrev2Function · 0.85
EncodePolylinePrev3Function · 0.85
DecodePolylinePrev3Function · 0.85
UNIT_TESTFunction · 0.85

Calls 1

ClampPointFunction · 0.70

Tested by 1

UNIT_TESTFunction · 0.68