public abstract class SuperPositionAbstract extends Object implements SuperPosition
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
centered |
| Constructor and Description |
|---|
SuperPositionAbstract(boolean centered) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkInput(javax.vecmath.Point3d[] fixed,
javax.vecmath.Point3d[] moved)
Check that the input to the superposition algorithms is valid.
|
void |
setCentered(boolean centered) |
javax.vecmath.Matrix4d |
superposeAndTransform(javax.vecmath.Point3d[] fixed,
javax.vecmath.Point3d[] moved)
Transform an array of points so that the coordinates of its points
minimize the RMSD to the other array of equivalent points, and return the
transformation matrix applied.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRmsd, superposeprotected boolean centered
public SuperPositionAbstract(boolean centered)
public javax.vecmath.Matrix4d superposeAndTransform(javax.vecmath.Point3d[] fixed, javax.vecmath.Point3d[] moved)
SuperPositionThe two point arrays have to be of the same length and the order of points have to be the same, so that a specific position in the one array is equivalent to the same position in the other array.
superposeAndTransform in interface SuperPositionfixed - point array as reference, onto which the other point array is
superposed. Original coordinates will not be modified.moved - point array to which the resulting transformation matrix is
applied. Original coordinates will be transformed.protected void checkInput(javax.vecmath.Point3d[] fixed, javax.vecmath.Point3d[] moved)
fixed - moved - public void setCentered(boolean centered)
centered - true if the point arrays are centered at the origin (faster),
false otherwiseCopyright © 2000–2019 BioJava. All rights reserved.