code: public void addPoint(float x, float y) {
      	if (hasVertex(x,y) && (!allowDups)) {
      		return;
      	}
      	
          ArrayList tempPoints = new ArrayList();
          for(int i=0;i<points.length;i++) {
              tempPoints.add(new Float(points[i]));
          }
          tempPoints.add(new Float(x));
          tempPoints.add(new Float(y));
          int length = tempPoints.size();
          points = new float[length];
          for(int i=0;i<length;i++) {
              points[i] = ((Float)tempPoints.get(i)).floatValue();
          }
          if(x > maxX) {
              maxX = x;
          }
          if(y > maxY) {
              maxY = y;
          }
          if(x < minX) {
              minX = x;
          }
          if(y < minY) {
              minY = y;
          }
          findCenter();
          calculateRadius();
          
          pointsDirty = true;
      }
docs: Add a point to the polygon
  
  @param x The x coordinate of the point
  @param y The y coordinate of the point