Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public float convexHullArea(ArrayList<Float> listPoints)
- {
- Point[] points = new Point[listPoints.size() / 2];
- int enumerator = 0;
- for (int i = 0; enumerator < points.length; i += 2)
- {
- points[enumerator] = new Point(listPoints.get(i), listPoints.get(i + 1));
- enumerator++;
- }
- return convexHull(points);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement