Package org.rspeer.commons.math
Class Jarvis
- java.lang.Object
-
- org.rspeer.commons.math.Jarvis
-
public class Jarvis extends Object
-
-
Constructor Summary
Constructors Constructor Description Jarvis()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Polygon
convexHull(int[] xs, int[] ys)
Computes and returns the convex hull of the passed points.
-
-
-
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
-
-