How do I generate a transformation matrix for rotating points/others by the angle between two lines/vectors/directions in CGAL?
2D is what I need. 3D is what I love.
How do I generate a transformation matrix for rotating points/others by the angle between two lines/vectors/directions in CGAL?
2D is what I need. 3D is what I love.
According to the manual you have these tools to work with:
With them you should be able to compute the matrices corresponding to the two directions and use an identity along the lines of:
to get what you want.