mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
Add docs and tests for unary op on class (#1814)
This commit is contained in:
@@ -662,6 +662,7 @@ to Python.
|
||||
.def(py::self *= float())
|
||||
.def(float() * py::self)
|
||||
.def(py::self * float())
|
||||
.def(-py::self)
|
||||
.def("__repr__", &Vector2::toString);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user