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

Function PredictPointInTriangle

libs/coding/geometry_coding.cpp:99–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99m2::PointU PredictPointInTriangle(m2::PointD const & maxPoint, m2::PointU const & p1, m2::PointU const & p2,
100 m2::PointU const & p3)
101{
102 // parallelogram prediction
103 return ClampPoint(maxPoint, m2::PointD(p1 + p2) - m2::PointD(p3));
104}
105
106void EncodePolylinePrev1(InPointsT const & points, m2::PointU const & basePoint, m2::PointU const & maxPoint,
107 OutDeltasT & deltas)

Callers 5

CalcDeltaMethod · 0.85
EncodeTriangleStripFunction · 0.85
DecodeTriangleStripFunction · 0.85
DecodeTrianglesFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 1

ClampPointFunction · 0.70

Tested by 1

UNIT_TESTFunction · 0.68