判断点是否在封闭图形
封闭图形是有一串左边表示,判断一个坐标是在封闭图形什么位置 String s5="[{\"mapLat\":1,\"mapLng\":2},{\"mapLat\":3,\"mapLng\":5},{\"mapLat\":8,\"mapLng\":5},{\"mapLat\":5,\"mapLng\":3},{\"mapLat\":8,\"mapLng\":2},{\"mapLat\":4,\"mapLng\":1}]"; System.out.println(judger1.isInPolygon("3", "2", s5)); System.out.println(judger1.isInPolygon("4", "5", s5)); System.out.println(judger1.isInPolygon("2", "1", s5)); System.out.println(judger1.isInPolygon("6", "2", s5)); System.out.println(judger1.isInPolygon("7", "3", s5));