public static boolean closeEnoughToBond(IAtom atom1, IAtom atom2, double distanceFudgeFactor) {

        if (!atom1.equals(atom2)) {
            double distanceBetweenAtoms = atom1.getPoint3d().distance(atom2.getPoint3d());
            double bondingDistance = atom1.getCovalentRadius() + atom2.getCovalentRadius();
            if (distanceBetweenAtoms <= (distanceFudgeFactor * bondingDistance)) {
                return true;
            }
        }
        return false;
    }
public static boolean closeEnoughToBond ( IAtom atom1 , IAtom atom2 , double distanceFudgeFactor ) { if ( ! atom1 . equals ( atom2 ) ) { double distanceBetweenAtoms = atom1 . getPoint3d ( ) . distance ( atom2 . getPoint3d ( ) ) ; double bondingDistance = atom1 . getCovalentRadius ( ) + atom2 . getCovalentRadius ( ) ; if ( distanceBetweenAtoms <= ( distanceFudgeFactor * bondingDistance ) ) { return true ; } } return false ; }
Returns true if the two atoms are within the distance fudge
factor of each other.

@param  atom1                Description of Parameter
@param  atom2                Description of Parameter
@param  distanceFudgeFactor  Description of Parameter
@return                      Description of the Returned Value
@cdk.keyword                 join-the-dots
@cdk.keyword                 bond creation