Computing Rotation Matrices Between Two Sets of Vectors
Computes the rotation matrix between two sets of vectors. Input parameters consist of same-name vectors (with unit magnitude) in two different coordinate systems, and the output is a 3x3 rotation matrix. The implementation typically uses orthogonal Procrustes analysis or Kabsch algorithm for optimal rotation calculation.