public void geometryChanged() { point.geometryChanged(); }
for (int i = 0; i < numSamples; i++) { c.x = env.getMinX() + stepSize * i; pp.geometryChanged(); if (!pg.contains(pp)) { containCounter = 0; int midIdx = max > 1 ? maxIdx - max / 2 : maxIdx; c.x = env.getMinX() + stepSize * midIdx; pp.geometryChanged(); return pp; } else {
c.x = tp[0]; c.y = tp[1]; pp.geometryChanged();
testPoint.geometryChanged(); if (!pg.contains(testPoint)) continue;
public void apply(CoordinateSequenceFilter filter) { if (isEmpty()) return; filter.filter(coordinates, 0); if (filter.isGeometryChanged()) geometryChanged(); }
/** * Tests if this ROI contains the given image location. * * @param x location X ordinate * @param y location Y ordinate * * @return {@code true} if the location is within this ROI; * {@code false} otherwise */ @Override public boolean contains(double x, double y) { testPointCS.setOrdinate(0, 0, x); testPointCS.setOrdinate(0, 1, y); testPoint.geometryChanged(); return theGeom.contains(testPoint); }
/** * Tests if this ROI contains the given image location. * * @param x location X ordinate * @param y location Y ordinate * * @return {@code true} if the location is within this ROI; * {@code false} otherwise */ @Override public boolean contains(double x, double y) { testPointCS.setX(0, x); testPointCS.setY(0, y); testPoint.geometryChanged(); return theGeom.contains(testPoint); }
/** * Tests if this ROI contains the given image location. * * @param x location X ordinate * @param y location Y ordinate * * @return {@code true} if the location is within this ROI; * {@code false} otherwise */ @Override public boolean contains(double x, double y) { testPointCS.setOrdinate(0, 0, x); testPointCS.setOrdinate(0, 1, y); testPoint.geometryChanged(); return theGeom.contains(testPoint); }
for (int x = tile.getMinX(), ix = 0; ix < tile.getWidth(); x++, ix++) { testPointCS.setX(0, x + 0.5); testPoint.geometryChanged(); int expected = poly.intersects(testPoint) ? 1 : 0; assertEquals("Failed test at position " + x + ", " + y + ", " + "expected "