|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A graphic geometry that allows testing for spatial intersection. Intersectables and intersectors can be in different reference spaces but implementations must account for this difference (such as by using spatial transformations).
Unlike a pick operation, an intersection produces an unqualified hit/no-hit result, which can be useful for simple picking and collision schemes. Although defined in terms of spatial geometry, logical forms of intersection are not precluded.
For geometric intersection an intersection typically occurs if any part of the intesector shape is inside or on this intersectable's shape. For efficiency, the target graphic, as a whole or in parts, can be incorporated into an intersection tree (see IntersectionNode).
Method Summary | |
boolean |
canIntersectGraphic(GraphicGeometry intersector)
Returns true if the intersection operation between the intersector and this intersectable is supported. |
boolean |
intersectGraphic(GraphicGeometry intersector)
Returns true if the intersector intersects this intersectable. |
Methods inherited from interface gumbo.graphic.space.GraphicGeometry |
getGraphicLocalSpace |
Methods inherited from interface gumbo.graphic.Graphic |
getGraphic |
Method Detail |
public boolean canIntersectGraphic(GraphicGeometry intersector)
intersector
- Value of the intersector. Never null.
public boolean intersectGraphic(GraphicGeometry intersector)
intersector
- Value of the intersector. Never null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |