return geom.contains(p);
}
protected Polygon createRect(double x, double y, double w, double h) {
double[] arr = { x, y, x + w, y, x + w, y + h, x, y + h, x, y };
PackedCoordinateSequence shell = new PackedCoordinateSequence.Double(arr, 2);
Polygon p = fac.createPolygon(fac.createLinearRing(shell), NOSHELLS);
return p;
}