Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.     public float convexHullArea(ArrayList<Float> listPoints)
  2.     {
  3.         Point[] points = new Point[listPoints.size() / 2];
  4.         int enumerator = 0;
  5.  
  6.         for (int i = 0; enumerator < points.length; i += 2)
  7.         {
  8.             points[enumerator] = new Point(listPoints.get(i), listPoints.get(i + 1));
  9.             enumerator++;
  10.         }
  11.  
  12.         return convexHull(points);
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement