2015-12-09 250 views

回答

6

Eigen::Affine3fEigen::Transform<float, 3, Eigen::Affine>一个typedef。 根据reference,该类型具有成员函数MatrixType & matrix(),它为您提供矩阵接口。

Eigen::Matrix4f a; 
Eigen::Affine3f b; 
b.matrix() = a; 
6

operator=会做:

Matrix4f M; 
Affine3f F; 
F = M;