Class Jarvis


  • public class Jarvis
    extends Object
    • Constructor Detail

      • Jarvis

        public Jarvis()
    • Method Detail

      • convexHull

        public static Polygon convexHull​(int[] xs,
                                         int[] ys)
        Computes and returns the convex hull of the passed points.

        The size of the list must be at least 3, otherwise this method will return null.

        Returns:
        a shape the points part of the convex hull