code: @Override
      public Point2d get2DCenter() {
          double xOfCenter = 0;
          double yOfCenter = 0;
          for (IAtom atom : atoms) {
              xOfCenter += atom.getPoint2d().x;
              yOfCenter += atom.getPoint2d().y;
          }
  
          return new Point2d(xOfCenter / ((double) getAtomCount()), yOfCenter / ((double) getAtomCount()));
      }
docs: Returns the geometric 2D center of the bond.
  
  @return The geometric 2D center of the bond