find rotation rot such that l = rot * r
Description
Find the rotation that best maps all the vectors r onto the vectors l.
Syntax
rot = rotation.fit(r,l)
rot = rotation.fit(r,l,'weights',w)Input
| r, l | vector3d | 
Output
| rot | rotation | 
References
- W. Kabsch, A solution for the best rotation to relate two sets of vectors, Acta Cryst. (1976). A32, 922.
- B. K. P. Horn, Closed-form solution of absolute orientation using unit quaternions, Journal of the Optical Society of America A (1987), Vol, 4, 629.
See also
rotation.rotation rotation.byMatrix rotation.byAxisAngle rotation.byEuler