Registered Member
|
Hi there,
I'm trying to use Transform to apply a Affine transformation to a set of 3d points. In the help for the operator * in Transform: http://eigen.tuxfamily.org/dox-devel/cl ... 6c6dfffba8 says the right hand side may be a number of things, among them "a set of vectors of size Dim x Dynamic". I assume this will be equivalent to a set of points. What I intend here is to transform all the points in a single operation. How do I construct a set of vectors (or points)? Can I do something like VectorXd<Vector3d>? At the moment I have a MatrixXd<numberOfPoints, 3> could I map this to the "set of vectors"? Thanks in advance. Martin |
Registered Member
|
The following code should work just fine
I.e. just stick to your matrix representation but use a matrix where the number of rows is fixed (Matrix3Xd = Matrix<double,3,Dynamic>). I hope that helps a bit. - Hauke |
Registered Member
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient