Class ConvexHull2D


  • public class ConvexHull2D
    extends java.lang.Object

    interface for convexhull calculators on 2d point sets
    • Constructor Detail

      • ConvexHull2D

        public ConvexHull2D​(long cPtr,
                            boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        public static long getCPtr​(ConvexHull2D obj)
      • delete

        public void delete()
      • isInside

        public boolean isInside​(Vector2D vertex)
        test if the given vertex is inside the convex hull
      • getMinDist

        public double getMinDist​(Vector2D vertex)
        if the vertex is inside the convex hull the minimum distance
        to any of the half-spaces of the hull is returned. If its not inside
        0 is returned.
        Parameters:
        vertex -
        Returns:
        minimum distance to vertex