Class GeometryCalculator


  • public class GeometryCalculator
    extends java.lang.Object
    Utility class to perform 3D geometry calculations on molecules
    • Constructor Detail

      • GeometryCalculator

        public GeometryCalculator()
    • Method Detail

      • 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​(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 -