Identify if point is in the polygon

Just tried Ray Casting algorithm which identifies point in polygon. This works perfect. Refer http://en.wikipedia.org/wiki/Point_in_polygon for thesis of Ray-Casting private boolean isPointInPolygon(LatLng tap, ArrayList<LatLng> vertices) { int intersectCount = 0; for (int j = 0; j < vertices.size() – 1; j++) { if (rayCastIntersect(tap, vertices.get(j), vertices.get(j + 1))) { intersectCount++; } } return ((intersectCount % … Read more