Permalink
Browse files

Path2D: Reuse 'contains(..)' method, footprint

  • Loading branch information...
sgothel committed Oct 16, 2012
1 parent 9ad5f1e commit 83cc52571ffeeea8efc673ed274a4c7a09597c6c
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/jogl/classes/jogamp/graph/geom/plane/Path2D.java
@@ -397,12 +397,7 @@ public boolean contains(Vertex p) {
}
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) {

0 comments on commit 83cc525

Please sign in to comment.