mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
parent
a81fd0c651
commit
efd4e27488
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user