code: public boolean includes(float x, float y) {
      	if (points.length == 0) {
      		return false;
      	}
      	
      	checkPoints();
      	
      	Line testLine = new Line(0,0,0,0);
      	Vector2f pt = new Vector2f(x,y);
      	
      	for (int i=0;i<points.length;i+=2) {
      		int n = i+2;
      		if (n >= points.length) {
      			n = 0;
      		}
      		testLine.set(points[i], points[i+1], points[n], points[n+1]);
      		
      		if (testLine.on(pt)) {
      			return true;
      		}
      	}
      	
      	return false;
      }
docs: Check if the given point is part of the path that
  forms this shape
  
  @param x The x position of the point to check
  @param y The y position of the point to check
  @return True if the point is includes in the path of the polygon