Test of Point inside polygon in Android
The other day I did a class in Java to calculate if a point(X,Y) is inside a polygon. ( X and Y are double , because will be geo-coordinates). I know that Java has the class Polygon , but I had to use Path2D and Point2D , because Polygon don't allow double 's, just integers :( Once I have the polygon done in Path2D , I used the method contains ( Path2D had it), and my problem was solved. But now, I want to import to Android, and the problem is here, because Path2D needs to import: import java.awt.geom.Path2D; import java.awt.geom.Point2D; and in Android don't exist awt, so I can't use. So, is