Check whether on top or bottom of Polygon
in
Programming Questions
•
2 years ago
Hey!
I have a polygon which looks something like this, it changes every now and then, so it's not a solid shape.
What I need to do is to check whether a field (a class inheriting pvector) is on top or below the polygon.
The left and right vertical lines are always there but I can't for the life of it figure out how to make it work.
It's easy to check if it's inside or not with .contains(); but how do I check if its on top or bottom?
Would be great if someone could help me out here.
Thanks!
Best regards,
Jonas
1