We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a200aa commit 1259d05Copy full SHA for 1259d05
subprojects/robotpy-wpimath/gen/geometry/Rotation2d.yml
@@ -42,6 +42,9 @@ inline_code: |
42
.def_static("fromDegrees", [](units::degree_t value) {
43
return std::make_unique<Rotation2d>(value);
44
}, py::arg("value"))
45
+ .def_static("fromRotations", [](units::turn_t value) {
46
+ return std::make_unique<Rotation2d>(value);
47
+ })
48
.def("__repr__", py::overload_cast<const Rotation2d&>(&rpy::toString));
49
50
SetupWPyStruct<frc::Rotation2d>(cls_Rotation2d);
0 commit comments