Buy article online - an online subscription or single-article purchase is required to access this article.
![a logo](https://journals.iucr.org/logos/jicons/a_36x36.png)
A simple procedure is derived which determines a best rotation of a given vector set into a second vector set by minimizing the weighted sum of squared deviations. The method is generalized for any given metric constraint on the transformation.