aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-16 07:54:05 +0200
committerSven Gothel <[email protected]>2012-10-16 07:54:05 +0200
commit83cc52571ffeeea8efc673ed274a4c7a09597c6c (patch)
treedf718367b52b31c7da35b35d3b0a96addcc12483 /src/jogl/classes/jogamp/graph
parent9ad5f1ea9f4ee9908fe5c5c422b287397b63e551 (diff)
Path2D: Reuse 'contains(..)' method, footprint
Diffstat (limited to 'src/jogl/classes/jogamp/graph')
-rw-r--r--src/jogl/classes/jogamp/graph/geom/plane/Path2D.java7
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) {