I have two questions.
Does the rigid transformation represented in Eigen::Affine3f and Eigen::Matrix4f will be the same ?
How can we convert from Eigen::Affine3f to Eigen::Matrix4f and vice versa ?
Thanks for your help!
Yes, internally an Affine3f stores a MatrixXf, so you can do:
Eigen::Affine3f A;
Eigen::Matrix4f M;
M = A.matrix();
A = M; // assume that M.row(3) == [0 0 0 1]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With