Question

How can this be done using Eigen 3?

#include <Eigen/Geometry>

Affine3d transform;
AngleAxisd aa = ...;
Was it helpful?

Solution

Of course, I found the answer shortly after posting the question.

Affine3d transform;
AngleAxisd aa(transform.rotation());

Naturally this discards any translation component in the original affine transformation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top