public class PolygonUtil extends Object
Constructor and Description |
---|
PolygonUtil() |
Modifier and Type | Method and Description |
---|---|
static Polygon2D |
add(Bounds rectangleX,
Bounds rectangleY,
Polygon2D polygon)
Add a rectangle and a polygon together
|
static List<Point2D> |
allPoints(SystemSpaces shapes) |
static Polygon2D |
convertCircle(double radius,
double turnAngle,
int edgeCount,
Bounds angles)
Restrict the circle with given radius into a convex polygon with the given number of
edges.
|
protected static Point2D |
find(Polygon2D polygon,
org.seamcat.model.geometry.PolygonUtil.PointCompare primary,
org.seamcat.model.geometry.PolygonUtil.PointCompare secondary) |
static Point2D |
getRandomPointInside(Polygon2D polygon) |
protected static Map<org.seamcat.model.geometry.PolygonUtil.Orientation,List<Point2D>> |
map(Polygon2D polygon) |
public static Polygon2D convertCircle(double radius, double turnAngle, int edgeCount, Bounds angles)
radius
- radius of the enclosing circleturnAngle
- the angle to turn the resulting polygonedgeCount
- number of edges of the restricted polygonpublic static Polygon2D add(Bounds rectangleX, Bounds rectangleY, Polygon2D polygon)
protected static Point2D find(Polygon2D polygon, org.seamcat.model.geometry.PolygonUtil.PointCompare primary, org.seamcat.model.geometry.PolygonUtil.PointCompare secondary)
protected static Map<org.seamcat.model.geometry.PolygonUtil.Orientation,List<Point2D>> map(Polygon2D polygon)
public static List<Point2D> allPoints(SystemSpaces shapes)
Copyright © 2018. All rights reserved.