/** * Returns how many times rectangle stripe cross shape or the are intersect */ public static int intersectShape (IShape s, float x, float y, float w, float h) { if (!s.bounds().intersects(x, y, w, h)) { return 0; } return intersectPath(s.pathIterator(null), x, y, w, h); }
/** * Returns how many times rectangle stripe cross shape or the are intersect */ public static int intersectShape (IShape s, float x, float y, float w, float h) { if (!s.bounds().intersects(x, y, w, h)) { return 0; } return intersectPath(s.pathIterator(null), x, y, w, h); }
/** * Returns how many times a ray from point (x,y) crosses a shape. */ public static int crossShape (IShape s, float x, float y) { if (!s.bounds().contains(x, y)) { return 0; } return crossPath(s.pathIterator(null), x, y); }
/** * Returns how many times a ray from point (x,y) crosses a shape. */ public static int crossShape (IShape s, float x, float y) { if (!s.bounds().contains(x, y)) { return 0; } return crossPath(s.pathIterator(null), x, y); }