Class EventMediator.Jarvis
java.lang.Object
org.rspeer.game.provider.callback.EventMediator.Jarvis
- Enclosing class:
- EventMediator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Polygon
convexHull
(int[] xs, int[] ys) Computes and returns the convex hull of the passed points.
-
Constructor Details
-
Jarvis
public Jarvis()
-
-
Method Details
-
convexHull
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
-