test_class.file: runelite-api/src/test/java/net/runelite/api/model/JarvisTest.java
test_class.identifier: JarvisTest
test_case.body: @Test
  	public void test2()
  	{
  		Point[] points =
  		{
  			new Point(0, 3),
  			new Point(4, 2),
  			new Point(3, 5),
  			new Point(5, 3),
  			new Point(3, 0),
  			new Point(1, 1),
  			new Point(1, 2),
  			new Point(2, 2)
  		};
  
  		List<Point> result = Jarvis.convexHull(Arrays.asList(points));
  		Assert.assertEquals(5, result.size());
  		Assert.assertEquals(new Point(0, 3), result.get(0));
  		Assert.assertEquals(new Point(3, 5), result.get(1));
  		Assert.assertEquals(new Point(5, 3), result.get(2));
  		Assert.assertEquals(new Point(3, 0), result.get(3));
  		Assert.assertEquals(new Point(1, 1), result.get(4));
  	}
test_case.class_method_signature: JarvisTest.test2()
test_case.full_signature: @Test public void test2()
test_case.identifier: test2
test_case.invocations: convexHull asList assertEquals size assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test2()
focal_class.file: runelite-api/src/main/java/net/runelite/api/model/Jarvis.java
focal_class.identifier: Jarvis
focal_class.class_method_signature: Jarvis.convexHull(List<Point> points)
focal_class.full_signature: @Deprecated public static List<Point> convexHull(List<Point> points)
focal_class.identifier: convexHull
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (List<Point> points)
focal_class.return: List<Point>
focal_class.signature: List<Point> convexHull(List<Point> points)
focal_class.class_method_signature: Jarvis.convexHull(int[] xs, int[] ys)
focal_class.full_signature: public static SimplePolygon convexHull(int[] xs, int[] ys)
focal_class.identifier: convexHull
focal_class.modifiers: public static
focal_class.parameters: (int[] xs, int[] ys)
focal_class.return: SimplePolygon
focal_class.signature: SimplePolygon convexHull(int[] xs, int[] ys)
focal_class.class_method_signature: Jarvis.square(int x)
focal_class.full_signature: private static int square(int x)
focal_class.identifier: square
focal_class.modifiers: private static
focal_class.parameters: (int x)
focal_class.return: int
focal_class.signature: int square(int x)
focal_class.class_method_signature: Jarvis.findLeftMost(int[] xs, int[] ys, int length)
focal_class.full_signature: private static int findLeftMost(int[] xs, int[] ys, int length)
focal_class.identifier: findLeftMost
focal_class.modifiers: private static
focal_class.parameters: (int[] xs, int[] ys, int length)
focal_class.return: int
focal_class.signature: int findLeftMost(int[] xs, int[] ys, int length)
focal_class.class_method_signature: Jarvis.crossProduct(int px, int py, int qx, int qy, int rx, int ry)
focal_class.full_signature: private static long crossProduct(int px, int py, int qx, int qy, int rx, int ry)
focal_class.identifier: crossProduct
focal_class.modifiers: private static
focal_class.parameters: (int px, int py, int qx, int qy, int rx, int ry)
focal_class.return: long
focal_class.signature: long crossProduct(int px, int py, int qx, int qy, int rx, int ry)
focal_method.body: @Deprecated
  	public static List<Point> convexHull(List<Point> points)
  	{
  		int[] xs = new int[points.size()];
  		int[] ys = new int[xs.length];
  		for (int i = 0; i < xs.length; i++)
  		{
  			Point p = points.get(i);
  			xs[i] = p.getX();
  			ys[i] = p.getY();
  		}
  
  		SimplePolygon poly = convexHull(xs, ys);
  		if (poly == null)
  		{
  			return null;
  		}
  
  		return poly.toRuneLitePointList();
  	}
focal_method.class_method_signature: Jarvis.convexHull(List<Point> points)
focal_method.full_signature: @Deprecated public static List<Point> convexHull(List<Point> points)
focal_method.identifier: convexHull
focal_method.invocations: size get getX getY convexHull toRuneLitePointList
focal_method.modifiers: @Deprecated public static
focal_method.parameters: (List<Point> points)
focal_method.return: List<Point>
focal_method.signature: List<Point> convexHull(List<Point> points)