From 83cc52571ffeeea8efc673ed274a4c7a09597c6c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 16 Oct 2012 07:54:05 +0200 Subject: Path2D: Reuse 'contains(..)' method, footprint --- src/jogl/classes/jogamp/graph/geom/plane/Path2D.java | 7 +------ 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.3