Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
7eb1d2d4
Commit
7eb1d2d4
authored
6 years ago
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added angle_between_lines() to the Python API.
parent
8785ac1d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
line.cpp
tools/python/src/line.cpp
+11
-0
No files found.
tools/python/src/line.cpp
View file @
7eb1d2d4
...
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment