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

Function IsSmooth

libs/drape_frontend/drape_frontend_tests/path_text_test.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace
9{
10bool IsSmooth(m2::SplineEx const & spline)
11{
12 for (size_t i = 0, sz = spline.GetDirections().size(); i + 1 < sz; ++i)
13 if (!df::IsValidSplineTurn(spline.GetDirections()[i], spline.GetDirections()[i + 1]))
14 return false;
15 return true;
16}
17} // namespace
18
19UNIT_TEST(Rounding_Spline)

Callers 1

UNIT_TESTFunction · 0.85

Calls 2

IsValidSplineTurnFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected