Class GeometryCalculator
- java.lang.Object
-
- com.actelion.research.chem.descriptor.flexophore.calculator.GeometryCalculator
-
public class GeometryCalculator extends java.lang.ObjectUtility class to perform 3D geometry calculations on molecules
-
-
Constructor Summary
Constructors Constructor Description GeometryCalculator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetAngle(Coordinates c1, Coordinates c2, Coordinates c3)static doublegetAngle(Molecule3D mol, int a1, int a2, int a3)Gets the Angle between 3 atomsstatic doublegetAngle(Molecule mol, int a1, int a2, int a3)static Coordinates[]getBounds(Molecule3D molecule)Gets the Bounds of a moleculestatic CoordinatesgetCenterGravity(Molecule3D mol)Gets the center of Gravity of a moleculestatic CoordinatesgetCoordinates(Molecule mol, int atm)static doublegetDihedral(Molecule3D mol, int a1, int a2, int a3, int a4)Gets the Dihedral Angle between 4 atomsstatic voidtranslate(Molecule3D molecule, Coordinates c)Translate a Molecule
-
-
-
Method Detail
-
getCoordinates
public static final Coordinates getCoordinates(Molecule mol, int atm)
-
getAngle
public static final double getAngle(Molecule3D mol, int a1, int a2, int a3)
Gets the Angle between 3 atoms- Parameters:
mol-- Returns:
- the angle
-
getAngle
public static final double getAngle(Coordinates c1, Coordinates c2, Coordinates c3)
-
getAngle
public static final double getAngle(Molecule mol, int a1, int a2, int a3)
-
getDihedral
public static final double getDihedral(Molecule3D mol, int a1, int a2, int a3, int a4)
Gets the Dihedral Angle between 4 atoms- Parameters:
mol-- Returns:
- the angle
-
getCenterGravity
public static final Coordinates getCenterGravity(Molecule3D mol)
Gets the center of Gravity of a molecule- Parameters:
mol-- Returns:
-
getBounds
public static final Coordinates[] getBounds(Molecule3D molecule)
Gets the Bounds of a molecule- Parameters:
molecule-- Returns:
- an Array of Coordinares [lowerBounds, upperbounds]
-
translate
public static final void translate(Molecule3D molecule, Coordinates c)
Translate a Molecule- Parameters:
molecule-c-
-
-