Class Polygon
java.lang.Object
jaba.Hull.Polygon
- Direct Known Subclasses:
Triangle
A class representing a polygon
- Version:
- 1.1
- Author:
- Chris Pudney
cpudney@alphapharm.pharm.uwa.edu.au
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the vertices of a polygon.nextVertex(Vertex v) Returns the next vertex of a polygonvoidreverse()Reverse the order of the vertices that define a contourtoString()Returns a string describing a polygon.
-
Constructor Details
-
Polygon
public Polygon()Construct a polygon with no vertices. -
Polygon
-
-
Method Details
-
reverse
public void reverse()Reverse the order of the vertices that define a contour -
getVertices
-
nextVertex
-
toString
-