aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogamp/graph/geom/plane
diff options
context:
space:
mode:
authorRami Santina <[email protected]>2011-03-30 14:31:48 +0300
committerRami Santina <[email protected]>2011-03-30 14:31:48 +0300
commitfca85c495e24322dd8870832fe3934fbe2d40236 (patch)
tree7026aa476ad884b7db4c807a8e6851ee1e71c60b /src/jogamp/graph/geom/plane
parent2d7cc275ccea2e11deeaf02f63c7984a6c09bf4f (diff)
Added inclass documentation to AABBox; Misc changes
Diffstat (limited to 'src/jogamp/graph/geom/plane')
-rw-r--r--src/jogamp/graph/geom/plane/Path2D.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/jogamp/graph/geom/plane/Path2D.java b/src/jogamp/graph/geom/plane/Path2D.java
index e25ae0e84..431891361 100644
--- a/src/jogamp/graph/geom/plane/Path2D.java
+++ b/src/jogamp/graph/geom/plane/Path2D.java
@@ -360,8 +360,6 @@ public final class Path2D implements Cloneable {
}
}
}
- // FIXME: Rami's code had this in, but AABBox uses upper left - lower right - right ?
- // return new AABBox(rx1, ry1, 0f, rx2 - rx1, ry2 - ry1, 0f);
return new AABBox(rx1, ry1, 0f, rx2, ry2, 0f);
}
@@ -396,11 +394,11 @@ public final class Path2D implements Cloneable {
}
public boolean contains(AABBox r) {
- return contains(r.getX(), r.getY(), r.getWidth(), r.getHeight());
+ return contains(r);
}
public boolean intersects(AABBox r) {
- return intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight());
+ return intersects(r.getMinX(), r.getMinY(), r.getWidth(), r.getHeight());
}
public PathIterator iterator() {