Drew Noakes
Drew Noakes

Reputation: 310927

Convert an Eigen3 Transform's rotation into an AngleAxis

How can this be done using Eigen 3?

#include <Eigen/Geometry>

Affine3d transform;
AngleAxisd aa = ...;

Upvotes: 1

Views: 761

Answers (1)

Drew Noakes
Drew Noakes

Reputation: 310927

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.

Upvotes: 2

Related Questions