mirror of https://github.com/davisking/dlib.git
Added angle_between_lines() to the Python API.
This commit is contained in:
parent
8785ac1d9a
commit
7eb1d2d4d5
|
@ -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\
|
||||
|
|
Loading…
Reference in New Issue