| Constructor and Description |
|---|
BondTools() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
closeEnoughToBond(IAtom atom1,
IAtom atom2,
double distanceFudgeFactor)
Returns true if the two atoms are within the distance fudge
factor of each other.
|
static double |
giveAngle(IAtom from,
IAtom to1,
IAtom to2)
Calls giveAngleBothMethods with bool = true.
|
static double |
giveAngleBothMethods(IAtom from,
IAtom to1,
IAtom to2,
boolean bool)
Gives the angle between two lines starting at atom from and going to to1
and to2.
|
static double |
giveAngleBothMethods(javax.vecmath.Point2d from,
javax.vecmath.Point2d to1,
javax.vecmath.Point2d to2,
boolean bool) |
static double |
giveAngleFromMiddle(IAtom from,
IAtom to1,
IAtom to2)
Calls giveAngleBothMethods with bool = false.
|
static boolean |
isCisTrans(IAtom firstOuterAtom,
IAtom firstInnerAtom,
IAtom secondInnerAtom,
IAtom secondOuterAtom,
IAtomContainer ac)
Says if two atoms are in cis or trans position around a double bond.
|
static boolean |
isLeft(IAtom whereIs,
IAtom viewFrom,
IAtom viewTo)
Says if an atom is on the left side of a another atom seen from a certain
atom or not.
|
static boolean |
isSquarePlanar(IAtomContainer container,
IAtom atom)
Says if an atom as a center of a square planar chirality.
|
static boolean |
isStereo(IAtomContainer container,
IAtom stereoAtom)
Says if an atom as a center of any valid stereo configuration or not.
|
static int |
isTetrahedral(IAtomContainer container,
IAtom atom,
boolean strict)
Says if an atom as a center of a tetrahedral chirality.
|
static int |
isTrigonalBipyramidalOrOctahedral(IAtomContainer container,
IAtom atom)
Says if an atom as a center of a trigonal-bipyramidal or actahedral
chirality.
|
static boolean |
isValidDoubleBondConfiguration(IAtomContainer container,
IBond bond)
Tells if a certain bond is center of a valid double bond configuration.
|
static void |
makeUpDownBonds(IAtomContainer container) |
static boolean |
stereosAreOpposite(IAtomContainer container,
IAtom atom)
Says if of four atoms connected two one atom the up and down bonds are
opposite or not, i.
|
public static boolean isValidDoubleBondConfiguration(IAtomContainer container, IBond bond)
container - The atomcontainer.bond - The bond.public static boolean isCisTrans(IAtom firstOuterAtom, IAtom firstInnerAtom, IAtom secondInnerAtom, IAtom secondOuterAtom, IAtomContainer ac) throws CDKException
firstOuterAtom - See above.firstInnerAtom - See above.secondInnerAtom - See above.secondOuterAtom - See above.ac - The atom container the atoms are in.CDKException - The atoms are not in a double bond configuration (no double bond in the middle, same atoms on one side)public static boolean isLeft(IAtom whereIs, IAtom viewFrom, IAtom viewTo)
whereIs - The atom the position of which is returnedviewFrom - The atom from which to lookviewTo - The atom to which to lookpublic static boolean closeEnoughToBond(IAtom atom1, IAtom atom2, double distanceFudgeFactor)
atom1 - Description of Parameteratom2 - Description of ParameterdistanceFudgeFactor - Description of Parameterpublic static double giveAngleBothMethods(IAtom from, IAtom to1, IAtom to2, boolean bool)
from - the atom to view from.to1 - first direction to look in.to2 - second direction to look in.bool - true=angle is 0 to 2PI, false=angel is -PI to PI.public static double giveAngleBothMethods(javax.vecmath.Point2d from,
javax.vecmath.Point2d to1,
javax.vecmath.Point2d to2,
boolean bool)
public static int isTetrahedral(IAtomContainer container, IAtom atom, boolean strict)
atom - The atom which is the centercontainer - The atomContainer the atom is inpublic static int isTrigonalBipyramidalOrOctahedral(IAtomContainer container, IAtom atom)
atom - The atom which is the centercontainer - The atomContainer the atom is inpublic static boolean isStereo(IAtomContainer container, IAtom stereoAtom)
stereoAtom - The atom which is the centercontainer - The atomContainer the atom is inpublic static boolean isSquarePlanar(IAtomContainer container, IAtom atom)
atom - The atom which is the centercontainer - The atomContainer the atom is inpublic static boolean stereosAreOpposite(IAtomContainer container, IAtom atom)
atom - The atom which is the centercontainer - The atomContainer the atom is inpublic static double giveAngle(IAtom from, IAtom to1, IAtom to2)
from - the atom to view fromto1 - first direction to look into2 - second direction to look inpublic static double giveAngleFromMiddle(IAtom from, IAtom to1, IAtom to2)
from - the atom to view fromto1 - first direction to look into2 - second direction to look inpublic static void makeUpDownBonds(IAtomContainer container)
Copyright © 2022. All rights reserved.