|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PolygonalShape2D
Represent any class made of a finite set of simply connected edges. This class can be specialized in General Polygons, Polygon2D, which is a simple polygon, or more specialized shapes (square, rhombus...)
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY, defaultClipWindow, EMPTY_SET |
| Method Summary | |
|---|---|
java.util.Collection<LineSegment2D> |
getEdges()
Return the edges as line segments of the polygon |
java.util.Collection<Point2D> |
getVertices()
Return the vertices (singular points) of the polygon |
int |
getVerticesNumber()
Return the number of vertices of the polygon |
PolygonalShape2D |
transform(AffineTransform2D trans)
Return the new Polygon created by an affine transform of this polygon. |
| Methods inherited from interface math.geom2d.curve.Domain2D |
|---|
getBoundary |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
clip, getBoundingBox, getDistance, getDistance, isBounded |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Method Detail |
|---|
java.util.Collection<Point2D> getVertices()
int getVerticesNumber()
java.util.Collection<LineSegment2D> getEdges()
PolygonalShape2D transform(AffineTransform2D trans)
transform in interface Shape2Dtrans - an affine transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||