powered by
Function to rotate X to match Y via singular value decomposition
rotXtoY(X, Y)
matrix to be rotated
objective matrix
rotated object Xrot, and the rotation matrix R
Xrot
R