code: public IAtom getFarthestAtom(Point3d refAtomPoint, IAtomContainer ac) {
          double distance = 0;
          IAtom atom = null;
          for (int i = 0; i < ac.getAtomCount(); i++) {
              if (ac.getAtom(i).getPoint3d() != null) {
                  if (Math.abs(refAtomPoint.distance(ac.getAtom(i).getPoint3d())) > distance) {
                      atom = ac.getAtom(i);
                      distance = Math.abs(refAtomPoint.distance(ac.getAtom(i).getPoint3d()));
                  }
              }
          }
          return atom;
      }
docs: Gets the farthestAtom attribute of the AtomPlacer3D object.
  
  @param  refAtomPoint  Description of the Parameter
  @param  ac            Description of the Parameter
  @return               The farthestAtom value