| Modifier and Type | Method and Description |
|---|---|
Polygon |
PointList.calculateConvexHull()
Calculate the convex hull of the points using the Graham Scan algorithm.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TriangulatedPolygon
A polygon that has been broken into triangles.
|
| Modifier and Type | Method and Description |
|---|---|
Polygon |
Triangle.asPolygon() |
Polygon |
Shape.asPolygon()
Convert the shape to a polygon representation
|
Polygon |
RotatedRectangle.asPolygon() |
Polygon |
Rectangle.asPolygon() |
Polygon |
Polygon.asPolygon()
Convert the shape to a polygon representation
|
Polygon |
Ellipse.asPolygon() |
Polygon |
Circle.asPolygon() |
Polygon |
Polygon.calculateConvexHullMelkman()
Calculate convex hull using Melkman's algorithm.
|
Polygon |
Ellipse.calculateOrientedBoundingBox()
Calculate the oriented bounding box.
|
Polygon |
Polygon.clone() |
Polygon |
Polygon.difference(Polygon p)
Calculates the difference between two polygons and returns a new polygon.
|
Polygon |
Polygon.getInnerPoly(int index)
Get the inner polygon at the given index.
|
Polygon |
Polygon.intersect(Polygon p2)
Returns the intersection of this polygon and the given polygon.
|
Polygon |
Polygon.reduceVertices(double eps)
Reduce the number of vertices in a polygon.
|
Polygon |
Polygon.roundVertices()
Iterates through the vertices and rounds all vertices to round integers.
|
Polygon |
Polygon.scaleX(float sc)
Scale the polygon only in the x-direction by the given amount about
(0,0).
|
Polygon |
Polygon.scaleXY(float scx,
float scy)
Scale the polygon by the given amount about (0,0).
|
Polygon |
Polygon.scaleY(float sc)
Scale the polygon only in the y-direction by the given amount about
(0,0).
|
Polygon |
Polygon.transform(Jama.Matrix transform)
Apply a 3x3 transform matrix to a copy of the polygon and return it
|
Polygon |
Polygon.union(Polygon p2)
Returns the union of this polygon and the given polygon.
|
Polygon |
Polygon.xor(Polygon p2)
Returns the XOR of this polygon and the given polygon.
|
| Modifier and Type | Method and Description |
|---|---|
List<Polygon> |
Polygon.getInnerPolys()
Returns the list of inner polygons.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Polygon.addInnerPolygon(Polygon p)
Add an inner polygon to this polygon.
|
void |
Polygon.addInnerPolygon(Polygon p,
boolean inferOuter)
Add an inner polygon to this polygon.
|
Polygon |
Polygon.difference(Polygon p)
Calculates the difference between two polygons and returns a new polygon.
|
boolean |
Polygon.equals(Polygon p)
Specific equals method for polygons where the polgyons are tested for the
vertices being in the same order.
|
Polygon |
Polygon.intersect(Polygon p2)
Returns the intersection of this polygon and the given polygon.
|
Polygon |
Polygon.union(Polygon p2)
Returns the union of this polygon and the given polygon.
|
Polygon |
Polygon.xor(Polygon p2)
Returns the XOR of this polygon and the given polygon.
|
| Constructor and Description |
|---|
TriangulatedPolygon(Polygon p)
Construct a
TriangulatedPolygon with a polygon. |
| Modifier and Type | Method and Description |
|---|---|
static List<ConvexityDefect> |
ConvexityDefect.findDefects(Polygon p)
Find the defects of the given polygon.
|
static List<ConvexityDefect> |
ConvexityDefect.findDefects(Polygon p,
Polygon hull)
Find the defects of the given polygon, based on the given convex hull
|
| Modifier and Type | Method and Description |
|---|---|
static Polygon |
GrahamScan.getConvexHull(List<Point2d> Point2ds)
Returns the convex hull of the Point2ds created from the list
Point2ds. |
Polygon |
PolygonUtils.intersection(Polygon p1,
Polygon p2)
Return the intersection of
p1 and p2 where the
return type is of PolyDefault. |
Polygon |
PolygonUtils.intersection(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the intersection of
p1 and p2 where the
return type is of polyClass. |
Polygon |
PolygonUtils.union(Polygon p1,
Polygon p2)
Return the union of
p1 and p2 where the return
type is of PolyDefault. |
Polygon |
PolygonUtils.union(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the union of
p1 and p2 where the return
type is of polyClass. |
Polygon |
PolygonUtils.xor(Polygon p1,
Polygon p2)
Return the xor of
p1 and p2 where the return
type is of PolyDefault. |
Polygon |
PolygonUtils.xor(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the xor of
p1 and p2 where the return
type is of polyClass. |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
RotatingCalipers.getIndex(Polygon convexHull,
RotatingCalipers.Corner corner) |
static RotatedRectangle |
RotatingCalipers.getMinimumBoundingRectangle(Polygon poly,
boolean assumeSimple)
Use the rotating calipers algorithm to optimally find the minimum sized
rotated rectangle that encompasses the outer shell of the given polygon.
|
Polygon |
PolygonUtils.intersection(Polygon p1,
Polygon p2)
Return the intersection of
p1 and p2 where the
return type is of PolyDefault. |
Polygon |
PolygonUtils.intersection(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the intersection of
p1 and p2 where the
return type is of polyClass. |
Polygon |
PolygonUtils.union(Polygon p1,
Polygon p2)
Return the union of
p1 and p2 where the return
type is of PolyDefault. |
Polygon |
PolygonUtils.union(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the union of
p1 and p2 where the return
type is of polyClass. |
Polygon |
PolygonUtils.xor(Polygon p1,
Polygon p2)
Return the xor of
p1 and p2 where the return
type is of PolyDefault. |
Polygon |
PolygonUtils.xor(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the xor of
p1 and p2 where the return
type is of polyClass. |
| Modifier and Type | Method and Description |
|---|---|
Polygon |
PolygonUtils.intersection(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the intersection of
p1 and p2 where the
return type is of polyClass. |
Polygon |
PolygonUtils.union(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the union of
p1 and p2 where the return
type is of polyClass. |
Polygon |
PolygonUtils.xor(Polygon p1,
Polygon p2,
Class<Polygon> polyClass)
Return the xor of
p1 and p2 where the return
type is of polyClass. |
| Modifier and Type | Method and Description |
|---|---|
Polygon |
TopPolygonNode.getResult(Class<Polygon> polyClass) |
| Modifier and Type | Method and Description |
|---|---|
Polygon |
TopPolygonNode.getResult(Class<Polygon> polyClass) |