From 7eb1d2d4d573cb972114060ecea0f8823b726fa9 Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 23 May 2018 23:06:31 -0400 Subject: [PATCH] Added angle_between_lines() to the Python API. --- tools/python/src/line.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/python/src/line.cpp b/tools/python/src/line.cpp index e864cd532..a0393b13f 100644 --- a/tools/python/src/line.cpp +++ b/tools/python/src/line.cpp @@ -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, 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, py::arg("l"), py::arg("reference_point"), py::arg("pts"), py::arg("dist_thresh"), "ensures \n\