499500501502503504505506507508509
if (npoints <= 0 || !getBoundingBox().intersects(x, y, w, h)) { return false; } Crossings cross = getCrossings(x, y, x+w, y+h); return (cross != null && cross.covers(y, y+h)); } /** * {@inheritDoc} * @since 1.2
564565566567568569570571572573574
} if (!getCachedBounds().contains(x, y, w, h)) { return false; } Crossings c = Crossings.findCrossings(curves, x, y, x+w, y+h); return (c != null && c.covers(y, y+h)); } /** * {@inheritDoc} * @since 1.2
516517518519520521522523524525526
582583584585586587588589590591592