Class CalcPoint
java.lang.Object
org.biojava.nbio.structure.geometry.CalcPoint
Utility operations on Point3d.
- Since:
- 5.0.0
- Author:
- Aleix Lafita
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcenter(javax.vecmath.Point3d[] x) Center a cloud of points.static javax.vecmath.Point3dcentroid(javax.vecmath.Point3d[] x) Calculate the centroid of the point cloud.static javax.vecmath.Point3d[]clonePoint3dArray(javax.vecmath.Point3d[] x) Clone an array of points.static intcontacts(javax.vecmath.Point3d[] x, javax.vecmath.Point3d[] y, double maxDistance) static MatrixformMatrix(javax.vecmath.Point3d[] a, javax.vecmath.Point3d[] b) static doubleGTSlikeScore(javax.vecmath.Point3d[] x, javax.vecmath.Point3d[] y) static doublermsd(javax.vecmath.Point3d[] x, javax.vecmath.Point3d[] y) Calculate the RMSD of two point arrays, already superposed.static doublermsdMin(javax.vecmath.Point3d[] x, javax.vecmath.Point3d[] y) static doubleTMScore(javax.vecmath.Point3d[] x, javax.vecmath.Point3d[] y, int lengthNative) Returns the TM-Score for two superimposed sets of coordinates Yang Zhang and Jeffrey Skolnick, PROTEINS: Structure, Function, and Bioinformatics 57:702–710 (2004)static voidtransform(javax.vecmath.Matrix4d rotTrans, javax.vecmath.Point3d[] x) Transform all points with a 4x4 transformation matrix.static voidtranslate(javax.vecmath.Vector3d trans, javax.vecmath.Point3d[] x) Translate all points with a translation vector.
-
Method Details
-
center
Center a cloud of points. This means subtracting thecentroid(Point3d[])of the cloud to each point.- Parameters:
x- array of points. Point objects will be modified
-
centroid
Calculate the centroid of the point cloud.- Parameters:
x- array of points. Point objects will not be modified- Returns:
- centroid as Point3d
-
transform
Transform all points with a 4x4 transformation matrix.- Parameters:
rotTrans- 4x4 transformation matrixx- array of points. Point objects will be modified
-
translate
Translate all points with a translation vector.- Parameters:
trans- the translation vector to applyx- array of points. Point objects will be modified
-
clonePoint3dArray
Clone an array of points.- Parameters:
x- original array of points. Point objects will not be modified- Returns:
- new array of points, identical clone of x
-
formMatrix
-
TMScore
public static double TMScore(javax.vecmath.Point3d[] x, javax.vecmath.Point3d[] y, int lengthNative) Returns the TM-Score for two superimposed sets of coordinates Yang Zhang and Jeffrey Skolnick, PROTEINS: Structure, Function, and Bioinformatics 57:702–710 (2004)- Parameters:
x- coordinate set 1y- coordinate set 2lengthNative- total length of native sequence- Returns:
-
GTSlikeScore
-
rmsd
Calculate the RMSD of two point arrays, already superposed.- Parameters:
x- array of points superposed to yy- array of points superposed to x- Returns:
- RMSD
-
rmsdMin
-
contacts
public static int contacts(javax.vecmath.Point3d[] x, javax.vecmath.Point3d[] y, double maxDistance)
-