Class ConvexHullTest

    • Constructor Detail

      • ConvexHullTest

        public ConvexHullTest()
    • Method Detail

      • getImplementations

        public static Map<String,​ConvexHullTest.ConvexHullImplementation> getImplementations()
        Create the map of all convex hull implementations.
        Returns:
        Map<String, ConvexHullImplementation>; the map of all convex hull implementations
      • testConvexHull

        public void testConvexHull()
        Test a convex hull implementation.
      • main

        public static void main​(String[] args)
                         throws IOException
        Compare performance.
        Parameters:
        args - String[]; the command line arguments (not used)
        Throws:
        IOException - ...
      • checkImplementations

        public static void checkImplementations​(Map<String,​ConvexHullTest.ConvexHullImplementation> implementations,
                                                List<Point2d> in,
                                                Polygon2d expectedResult)
        Check that all implementations of convex hull give the expected result.
        Parameters:
        implementations - Map<String, ConvexHullImplementation>; the implementations to check
        in - List<Point2d>; the input for the convex hull implementations
        expectedResult - Polygon2d; the expected result