How to check if a Point is inside a Polygon
coordinates, entity, java, location
Solution
If you create the polygon using the `Polygon` class that is included with java use the `contains()` method.
http://docs.oracle.com/javase/6/docs/api/java/awt/Polygon.html
Take a look at the method summary:
`contains(int x, int y)` - Determines whether the specified coordinates are inside this `Polygon`
Problem
I've got a `Polygon`: I want to check if the Location of an Entity is inside this `Polygon`. As example x:5 and y:5, How can I make a check to see if this Coordinate is inside this Polygon (Java)?