code: public void add(double x, double y) {
  		resize(m_pointCount + 1);
  		Point2D pt = new Point2D();
  		pt.setCoords(x, y);
  		setXY(m_pointCount - 1, pt);
  	}
docs: Adds a Point to this MultiPoint with given x, y coordinates.