How to rotate a set of points on z = 0 plane in 3-D, preserving pairwise distances?
- by cagirici
I have a set of points double n[] on the plane z = 0.
And I have another set of points double[] m on the plane ax + by + cz + d = 0.
Length of n is equal to length of m.
Also, euclidean distance between n[i] and n[j] is equal to euclidean distance between m[i] and m[j].
I want to rotate n[] in 3-D, such that for all i, n[i] = m[i] would be true.
…