I just noticed that there is no „intuitive“ API to check whether two shapes 
intersect with each other. The only way (I think) to do it is as follows:

Shape.intersect((Shape) child, circle).getBoundsInLocal().getWidth() != -1

If this is indeed the case I would like to propose that a method shall be added 
called „boolean Shape.intersects(Shape,Shape").

See also: 
https://stackoverflow.com/questions/15013913/checking-collision-of-shapes-with-javafx
 
<https://stackoverflow.com/questions/15013913/checking-collision-of-shapes-with-javafx>

Dirk


Reply via email to