|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Polygon2D
Represent any class made of a finite set of simply connected edges. This include simple polygons, multiple polygons, or more specialized shapes like rectangles, squares...
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
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. |
Methods inherited from interface math.geom2d.circulinear.CirculinearDomain2D |
---|
transform |
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D |
---|
getBuffer |
Methods inherited from interface math.geom2d.domain.Domain2D |
---|
clip, draw, fill |
Methods inherited from interface math.geom2d.Shape2D |
---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
Method Detail |
---|
Collection<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()
Domain2D
The returned curve is oriented, with an interior and an exterior.
getBoundary
in interface CirculinearDomain2D
getBoundary
in interface Domain2D
Polygon2D transform(AffineTransform2D trans)
transform
in interface Domain2D
transform
in interface Shape2D
trans
- an affine transform
Polygon2D complement()
complement
in interface Domain2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |