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

Function GetPointOnSurface

libs/geometry/geometry_tests/algorithm_test.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30PointD GetPointOnSurface(vector<PointD> const & points)
31{
32 ASSERT(!points.empty() && points.size() % 3 == 0, ("points.size() =", points.size()));
33 auto const boundingBox = GetBoundingBox(points);
34 return m2::ApplyCalculator(points, m2::CalculatePointOnSurface(boundingBox));
35}
36
37bool PointsAlmostEqual(PointD const & p1, PointD const & p2)
38{

Callers 1

UNIT_TESTFunction · 0.85

Calls 6

ASSERTFunction · 0.85
GetBoundingBoxFunction · 0.85
ApplyCalculatorFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected