MCPcopy Create free account
hub / github.com/davisking/dlib / py_polygon_area2

Function py_polygon_area2

tools/python/src/vector.cpp:386–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386double py_polygon_area2(
387 const py::list& pts
388)
389{
390 std::vector<dpoint> temp(len(pts));
391 for (size_t i = 0; i < temp.size(); ++i)
392 temp[i] = pts[i].cast<dpoint>();
393
394 return polygon_area(temp);
395}
396
397// ----------------------------------------------------------------------------------------
398

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
polygon_areaFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected