I have some questions about Polygons with points of Double type... What I have to do, is given points, create the polygon, and then, test if 1 concrete point is inside the poly
You can do this with Path2D.Double:
Path2D path = new Path2D.Double(); path.moveTo(valoresX[0], valoresY[0]); for(int i = 1; i < valoresX.length; ++i) { path.lineTo(valoresX[i], valoresY[i]); } path.closePath();
See also this question:
Implementing Polygon2D in Java 2D