diff options
author | Sven Gothel <[email protected]> | 2014-03-16 01:43:27 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-03-16 01:43:27 +0100 |
commit | 8352cb7c5d8cc971c87f13fe9f61e346c4d2c541 (patch) | |
tree | 046717b896460c5ddec6260ae58a09be0ea46c70 /src/jogl/classes/jogamp/graph/geom | |
parent | f0bb162ab18cb39e6b8e07649aa826fbe84c6950 (diff) |
Add generic support for picking via raycast intersection and AABBox (or similar)
- New simple type Ray, denominating a .. ray
- Added PMVMatrix.gluUnProjectRay(..) similar to gluUnproject(..)
however, result is a Ray.
- Added AABBox.intersectsRay(Ray) ..
Diffstat (limited to 'src/jogl/classes/jogamp/graph/geom')
-rw-r--r-- | src/jogl/classes/jogamp/graph/geom/plane/Crossing.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java b/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java index 4ee0c250d..982575b53 100644 --- a/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java +++ b/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java @@ -880,7 +880,7 @@ public class Crossing { * Returns how many times rectangle stripe cross shape or the are intersect */ public static int intersectShape(Path2D s, float x, float y, float w, float h) { - if (!s.getBounds2D().intersects(x, y, w, h)) { + if (!s.getBounds2D().intersects2DRegion(x, y, w, h)) { return 0; } return intersectPath(s.iterator(null), x, y, w, h); |