org.simtk.geometry3d
Class Superposition

java.lang.Object
  extended by org.simtk.geometry3d.Superposition

public class Superposition
extends java.lang.Object


Constructor Summary
Superposition()
           
 
Method Summary
static HomogeneousTransform kabsch78(Vector3D[] v1, Vector3D[] v2, double[] weights)
          Return a transformation that can place one set of vectors onto another while minimizing the least-squares distance between the corresponding points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Superposition

public Superposition()
Method Detail

kabsch78

public static HomogeneousTransform kabsch78(Vector3D[] v1,
                                            Vector3D[] v2,
                                            double[] weights)
Return a transformation that can place one set of vectors onto another while minimizing the least-squares distance between the corresponding points. The transformation is meant to be applied to the first set of coordinates. W. Kabsch (1978) A discussion of the solution for the best rotation to relate two sets of vectors. Acta Cryst. A34: 827-828 W. Kabsch (1976) A solution to the best rotation to relate two sets of vectors. Acta Cryst. A32: 922

Parameters:
v1 -
v2 -
weights -
Returns:
the optimal rigid superposition transform