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
8fd9c26f
Commit
8fd9c26f
authored
7 years ago
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made dlib.point() have writable x and y properties.
parent
fa39e518
master
v19.17
v19.16
v19.15
v19.14
v19.13
v19.12
v19.11
v19.10
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vector.cpp
tools/python/src/vector.cpp
+2
-2
No files found.
tools/python/src/vector.cpp
View file @
8fd9c26f
...
...
@@ -167,8 +167,8 @@ void bind_vector(py::module& m)
.
def
(
py
::
init
<
long
,
long
>
(),
py
::
arg
(
"x"
),
py
::
arg
(
"y"
))
.
def
(
"__repr__"
,
&
point__repr__
)
.
def
(
"__str__"
,
&
point__str__
)
.
def_property
_readonly
(
"x"
,
&
point_x
,
"The x-coordinate of the point."
)
.
def_property
_readonly
(
"y"
,
&
point_y
,
"The y-coordinate of the point."
)
.
def_property
(
"x"
,
&
point_x
,
[](
point
&
p
,
long
x
){
p
.
x
()
=
x
;}
,
"The x-coordinate of the point."
)
.
def_property
(
"y"
,
&
point_y
,
[](
point
&
p
,
long
y
){
p
.
x
()
=
y
;}
,
"The y-coordinate of the point."
)
.
def
(
py
::
pickle
(
&
getstate
<
type
>
,
&
setstate
<
type
>
));
}
{
...
...
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