public interface Polygon2D extends CirculinearDomain2D
| Modifier and Type | Method and Description |
|---|---|
Polygon2D |
complement()
Returns the complementary polygon.
|
CirculinearBoundarySet2D<? extends LinearRing2D> |
getBoundary()
Returns the boundary of the set.
|
int |
getEdgeNumber()
Returns the number of edges of the polygon
|
Collection<? extends LineSegment2D> |
getEdges()
Return the edges as line segments of the polygon
|
Collection<? extends LinearRing2D> |
getRings()
Returns the set of rings comprising the boundary of this polygon.
|
Point2D |
getVertex(int i)
Returns the i-th vertex of the polygon.
|
int |
getVertexNumber()
Returns the number of vertices of the polygon
|
Collection<Point2D> |
getVertices()
Returns the vertices (singular points) of the polygon
|
Polygon2D |
transform(AffineTransform2D trans)
Returns the new Polygon created by an affine transform of this polygon.
|
transformgetBuffercontains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmptyCollection<Point2D> getVertices()
Point2D getVertex(int i)
i - index of the vertex, between 0 and the number of verticesint getVertexNumber()
Collection<? extends LineSegment2D> getEdges()
int getEdgeNumber()
Collection<? extends LinearRing2D> getRings()
CirculinearBoundarySet2D<? extends LinearRing2D> getBoundary()
Domain2DThe returned curve is oriented, with an interior and an exterior.
getBoundary in interface CirculinearDomain2DgetBoundary in interface Domain2DPolygon2D transform(AffineTransform2D trans)
Polygon2D complement()
complement in interface Domain2DCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.