|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.sirius.util.StructureMath
This class contains all the math necessary to transform atomic coordinates and drive rotation and translation when building structures
Constructor Summary | |
StructureMath()
|
Method Summary | |
static void |
checkHydrogens(Atom atom,
StructureViewer viewer,
float pH,
boolean batch)
|
static void |
checkHydrogens(Structure structure,
StructureViewer viewer,
float pH)
This method runs through the structure and adds hydrogens where necessary, based on tabulated element valencies. |
static Location |
getBondLocation(Bond bond)
Returns a location of the bond, with the lookAt vector pointed along the bond and the up vector being orthogonal to the plane of the bond and one of the atoms the third vector is computed automatically The position is at the heavy atom |
static double[] |
getFromOriginMatrix(Atom root)
|
static double[] |
getFromOriginMatrix(double[] coordinates)
|
static double[] |
getLinearRotationMatrix(double angle,
double[] axis)
|
static double[] |
getLinearTranslationMatrix(double[] vector)
|
static double[] |
getPointOnVector(double[] eye,
double[] vector,
double distance)
Get coordinates of a point on a vector that originates from a given point |
static double |
getRMSD(Structure structure1,
Structure structure2)
|
static java.util.Vector |
getRotatedAtoms(StructureMap map,
Bond bond,
Atom atom)
|
static double[][] |
getRotationMatrix(double[] vector1,
double[] vector2)
|
static double[][] |
getRotationMatrix(double angle,
double[] axis)
|
static double[] |
getToOriginMatrix(Atom root)
|
static double[] |
getToOriginMatrix(double[] coordinates)
|
static boolean |
inRing(Atom root,
int size)
This method determines whether a given Atom is in a ring system of the specified size |
static double |
rmsd(java.util.Vector atoms1,
java.util.Vector atoms2)
|
static void |
rotateCoordinates(double[] axis,
double[] root,
double angle,
java.util.Vector coordinates)
|
static void |
rotateStructure(double[] axis,
Atom root,
double angle,
java.util.Vector atoms)
Note that the argument is in degrees, and they get converted into radians |
static void |
superimpose(Structure structure1,
java.util.Vector atoms1,
Structure structure2,
java.util.Vector atoms2)
This method performs RMSD minimization structure superposition. |
static void |
transformAtomSet(Location start,
Location target,
java.util.Vector atoms)
|
static void |
transformCoordinates(double[] input,
double[] matrix)
|
static void |
transformCoordinates(double[] input,
double[][] matrix)
This method returns the new x,y,z coordinates for a point given the corresponding rotation matrix |
static double[] |
transformPoint(Location start,
Location target,
double[] point)
|
static void |
transformStructure(Location start,
Location target,
Structure structure)
|
static void |
transformVector(Location start,
Location target,
double[] vector,
double[] out)
|
static java.util.Vector |
transformVectors(double[] start,
double[] target,
java.util.Vector vectors)
|
static void |
updateBondOrders(Structure structure)
This method checks whether the structure is a protein or DNA and assigns correct bond orders in case they have not been assigned. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StructureMath()
Method Detail |
public static final void transformStructure(Location start, Location target, Structure structure)
public static final double[] transformPoint(Location start, Location target, double[] point)
public static final void transformAtomSet(Location start, Location target, java.util.Vector atoms)
public static final void transformVector(Location start, Location target, double[] vector, double[] out)
public static final java.util.Vector transformVectors(double[] start, double[] target, java.util.Vector vectors)
public static final void transformCoordinates(double[] input, double[][] matrix)
input
- matrix
-
public static final void transformCoordinates(double[] input, double[] matrix)
public static final double[] getPointOnVector(double[] eye, double[] vector, double distance)
eye
- - point fromm where the vector startsvector
- - vector in questiondistance
-
public static final Location getBondLocation(Bond bond)
bond
-
public static final double[][] getRotationMatrix(double[] vector1, double[] vector2)
public static final double[][] getRotationMatrix(double angle, double[] axis)
public static final double[] getLinearRotationMatrix(double angle, double[] axis)
public static final double[] getLinearTranslationMatrix(double[] vector)
public static final void rotateStructure(double[] axis, Atom root, double angle, java.util.Vector atoms)
axis
- root
- angle
- atoms
- public static final void rotateCoordinates(double[] axis, double[] root, double angle, java.util.Vector coordinates)
public static final double[] getToOriginMatrix(Atom root)
public static final double[] getToOriginMatrix(double[] coordinates)
public static final double[] getFromOriginMatrix(Atom root)
public static final double[] getFromOriginMatrix(double[] coordinates)
public static void checkHydrogens(Structure structure, StructureViewer viewer, float pH)
structure
- public static void checkHydrogens(Atom atom, StructureViewer viewer, float pH, boolean batch)
public static boolean inRing(Atom root, int size)
public static java.util.Vector getRotatedAtoms(StructureMap map, Bond bond, Atom atom)
public static void updateBondOrders(Structure structure)
structure
- public static double getRMSD(Structure structure1, Structure structure2)
public static void superimpose(Structure structure1, java.util.Vector atoms1, Structure structure2, java.util.Vector atoms2)
structure1
- atoms1
- structure2
- atoms2
- public static double rmsd(java.util.Vector atoms1, java.util.Vector atoms2)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |