0

How can this be done using Eigen 3?

#include <Eigen/Geometry>

Affine3d transform;
AngleAxisd aa = ...;
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742

1 Answers1

1

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.

Drew Noakes
  • 300,895
  • 165
  • 679
  • 742