Getting started in the Eigen math library, I'm having trouble with a very simple task: transform a series of vectors using a quaternion. Seems everything I do results in no operator*
found, or mixing an array with a matrix.
Eigen::Quaternionf rot = …;
Eigen::Array3Xf series = …;
// expected this to work as matrix() returns a Transformation:
series.matrix().colwise() *= rot.matrix();
// expected these to work as it's standard notation:
series = rot.matrix() * series.matrix().colwise();
series = rot.toRotationMatrix() * series.matrix().colwise();
// Also tried adding .homogeneous() as one example used it… no dice