RFE: Shape Intersection

Dirk Lemmermann dlemmermann at gmail.com
Mon Jan 18 10:12:21 UTC 2021


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




More information about the openjfx-dev mailing list