Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
efd4e274
Commit
efd4e274
authored
Aug 24, 2019
by
Mischan Toosarani-Hausberger
Committed by
Davis E. King
Aug 24, 2019
Browse files
dpoint mutates x-coord in y-property (see #1794) (#1866)
parent
a81fd0c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/python/src/vector.cpp
tools/python/src/vector.cpp
+1
-1
No files found.
tools/python/src/vector.cpp
View file @
efd4e274
...
...
@@ -457,7 +457,7 @@ void bind_vector(py::module& m)
.
def
(
"__str__"
,
&
dpoint__str__
)
.
def
(
"normalize"
,
&
type
::
normalize
,
"Returns a unit normalized copy of this vector."
)
.
def_property
(
"x"
,
&
dpoint_x
,
[](
dpoint
&
p
,
double
x
){
p
.
x
()
=
x
;},
"The x-coordinate of the dpoint."
)
.
def_property
(
"y"
,
&
dpoint_y
,
[](
dpoint
&
p
,
double
y
){
p
.
x
()
=
y
;},
"The y-coordinate of the dpoint."
)
.
def_property
(
"y"
,
&
dpoint_y
,
[](
dpoint
&
p
,
double
y
){
p
.
y
()
=
y
;},
"The y-coordinate of the dpoint."
)
.
def
(
py
::
self
+
py
::
self
)
.
def
(
py
::
self
-
py
::
self
)
.
def
(
py
::
self
/
double
())
...
...
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