public final class RotatingCalipers extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RotatingCalipers.Caliper |
protected static class |
RotatingCalipers.Corner |
| Constructor and Description |
|---|
RotatingCalipers() |
| Modifier and Type | Method and Description |
|---|---|
static List<Point2D.Double[]> |
getAllBoundingRectangles(int[] xs,
int[] ys) |
static List<Point2D.Double[]> |
getAllBoundingRectangles(List<Point> points) |
static double |
getArea(Point2D.Double[] rectangle) |
protected static int |
getIndex(List<Point> convexHull,
RotatingCalipers.Corner corner) |
static Point2D.Double[] |
getMinimumBoundingRectangle(int[] xs,
int[] ys) |
static Point2D.Double[] |
getMinimumBoundingRectangle(List<Point> points) |
public static double getArea(Point2D.Double[] rectangle)
public static List<Point2D.Double[]> getAllBoundingRectangles(int[] xs, int[] ys) throws IllegalArgumentException
IllegalArgumentExceptionpublic static List<Point2D.Double[]> getAllBoundingRectangles(List<Point> points) throws IllegalArgumentException
IllegalArgumentExceptionpublic static Point2D.Double[] getMinimumBoundingRectangle(int[] xs, int[] ys) throws IllegalArgumentException
IllegalArgumentExceptionpublic static Point2D.Double[] getMinimumBoundingRectangle(List<Point> points) throws IllegalArgumentException
IllegalArgumentExceptionprotected static int getIndex(List<Point> convexHull, RotatingCalipers.Corner corner)
Copyright © 2015. All rights reserved.