Sophus icon indicating copy to clipboard operation
Sophus copied to clipboard

Creating an SO3 from two vectors

Open pvangoor opened this issue 3 years ago • 1 comments

This is a feature request.

Is it possible to add a function that creates an SO3 from two unit vectors? That is, given two unit vectors x, y, this function would return an SO3 R so that R x = y. I am aware that there is no unique solution to this problem, but thought it would be a useful feature nonetheless.

pvangoor avatar May 05 '21 01:05 pvangoor

Sure, it would be nice. But I think you can already just use Eigen to construct such a Quaternion and then create an SO3 object from that. https://eigen.tuxfamily.org/dox/classEigen_1_1Quaternion.html#title13

NikolausDemmel avatar May 05 '21 07:05 NikolausDemmel