Skip to content

Commit 4e3652b

Browse files
committed
geometry: Rotation2D: Added toRotationMatrix
1 parent 2aec59f commit 4e3652b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/nanoeigenpy/geometry/rotation-2d.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ void exposeRotation2D(nb::module_ m, const char *name) {
4646
"Returns the rotation angle in [-pi,pi]")
4747

4848
.def(RotationBaseVisitor<Rotation2D, 2>())
49+
4950
.def(
5051
"fromRotationMatrix",
5152
[](Rotation2D &r, const Matrix2 &mat) -> Rotation2D & {
5253
return r.fromRotationMatrix(mat);
5354
},
54-
"mat"_a, "Sets *this from a 3x3 rotation matrix",
55+
"mat"_a, "Sets *this from a 2x2 rotation matrix",
5556
nb::rv_policy::reference_internal)
57+
.def("toRotationMatrix", &Rotation2D::toRotationMatrix)
5658

5759
.def(
5860
"slerp",

0 commit comments

Comments
 (0)