Added angle_between_lines() to the Python API.

This commit is contained in:
Davis King 2018-05-23 23:06:31 -04:00
parent 8785ac1d9a
commit 7eb1d2d4d5
1 changed files with 11 additions and 0 deletions

View File

@ -121,6 +121,17 @@ is perpendicular to the line.";
!*/
);
m.def("angle_between_lines", [](const line& a, const line& b){return angle_between_lines(a,b);}, py::arg("a"), py::arg("b"),
"ensures \n\
- returns the angle, in degrees, between the given lines. This is a number in \n\
the range [0 90]."
/*!
ensures
- returns the angle, in degrees, between the given lines. This is a number in
the range [0 90].
!*/
);
m.def("count_points_on_side_of_line", &count_points_on_side_of_line<long>, py::arg("l"), py::arg("reference_point"), py::arg("pts"), py::arg("dist_thresh"));
m.def("count_points_on_side_of_line", &count_points_on_side_of_line<double>, py::arg("l"), py::arg("reference_point"), py::arg("pts"), py::arg("dist_thresh"),
"ensures \n\