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
Hm… not sure why you use an Array in your example. I guess you want to transform m 3-vectors by rot, right? You could use a 3xm Matrix for this.
How about