"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "b740c3f0ba2e89f2bdb6fb26393ac004c2f1ef48"
Commit efd4e274 authored by Mischan Toosarani-Hausberger's avatar Mischan Toosarani-Hausberger Committed by Davis E. King
Browse files

dpoint mutates x-coord in y-property (see #1794) (#1866)

parent a81fd0c6
...@@ -457,7 +457,7 @@ void bind_vector(py::module& m) ...@@ -457,7 +457,7 @@ void bind_vector(py::module& m)
.def("__str__", &dpoint__str__) .def("__str__", &dpoint__str__)
.def("normalize", &type::normalize, "Returns a unit normalized copy of this vector.") .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("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 - py::self) .def(py::self - py::self)
.def(py::self / double()) .def(py::self / double())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment