Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Point inside a Polygon

2890489Mar 2 2015 — edited Mar 2 2015

Apologies if this is a repost. I have searched the forum and cannot find anything that works in my context.

I have a shape, Polygon (javafx.scene.shape.Polygon) and want to test whether a point (javafx.geometry.point2D) is contained within the shape. (contains doesn't work)

I can change the polygon to any type, but I need to be able to create it using the 4 corners points and add it as a child to the Pane.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2015
Added on Mar 2 2015
1 comment
1,249 views