[py] Add wpimath/geometry tests (#8460)

This commit is contained in:
PJ Reiniger
2026-01-02 12:10:02 -05:00
committed by GitHub
parent 32fa124166
commit 8518b7014c
16 changed files with 2004 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ classes:
inline_code: |
cls_Quaternion
.def("__repr__", py::overload_cast<const Quaternion&>(&rpy::toString));
.def("__repr__", py::overload_cast<const Quaternion&>(&rpy::toString))
.def_property_readonly("w", &Quaternion::W)
.def_property_readonly("x", &Quaternion::X)
.def_property_readonly("y", &Quaternion::Y)
.def_property_readonly("z", &Quaternion::Z)
;
SetupWPyStruct<wpi::math::Quaternion>(cls_Quaternion);