Add docs and tests for unary op on class (#1814)

This commit is contained in:
Ian Bell
2019-06-22 04:07:41 -06:00
committed by Wenzel Jakob
parent a1b71df137
commit 502ffe50a9
3 changed files with 12 additions and 7 deletions

View File

@@ -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);
}