diff options
-rw-r--r-- | src/jogl/classes/jogamp/graph/geom/plane/Path2D.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/jogl/classes/jogamp/graph/geom/plane/Path2D.java b/src/jogl/classes/jogamp/graph/geom/plane/Path2D.java index bf5f5e9b6..c895e8351 100644 --- a/src/jogl/classes/jogamp/graph/geom/plane/Path2D.java +++ b/src/jogl/classes/jogamp/graph/geom/plane/Path2D.java @@ -397,12 +397,7 @@ public final class Path2D implements Cloneable { } public boolean contains(AABBox r) { - float lx = r.getMinX(); - float ly = r.getMinY(); - float w = r.getWidth(); - float h = r.getHeight(); - int cross = Crossing.intersectShape(this, lx, ly, w, h); - return cross != Crossing.CROSSING && isInside(cross); + return contains(r.getMinX(), r.getMinY(), r.getWidth(), r.getHeight()); } public boolean intersects(AABBox r) { |