This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Rotation2Df r; r = Matrix2f(..); no match for operator=

Tags: None
(comma "," separated)
hauptmech
Registered Member
Posts
2
Karma
0
The documentation says that I should be able to convert a rotation matrix to a Rotation2D with the idiom:
Code: Select all
Rotation2Df r; r = Matrix2f(..); 


I tried to copy a matrix to a rotation as stated in the docs. I got a compiler error.
Code: Select all
error: no match for ‘operator=’ (operand types are ‘Eigen::Rotation2D<double>’ and ‘Eigen::Matrix2d {aka Eigen::Matrix<double, 2, 2>}’)


I'm including Eigen/Dense and Eigen/Geometry. Is there something else I'm missing?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Indeed, the doc seems to be wrong. You currently have to write rot.fromRotationMatrix(mat2x2);
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]