public class PolygonEdgeIterator extends EdgeIterator
| Modifier and Type | Method and Description |
|---|---|
static PolygonEdgeIterator |
allocate(Polygon polygon) |
protected void |
beginIteration() |
protected void |
endIteration() |
LineSegment |
getEdgeLineSegment()
Returns the
LineSegment of the edge |
float |
getPointAX()
Returns the x coordinate of the first point in the edge
|
float |
getPointAY()
Returns the y coordinate of the first point in the edge
|
float |
getPointBX()
Returns the x coordinate of the second point in the edge
|
float |
getPointBY()
Returns the y coordinate of the second point in the edge
|
boolean |
hasNext()
Returns if there is another edge to iterate over
|
protected void |
nextEdge() |
begin, end, nextpublic static PolygonEdgeIterator allocate(Polygon polygon)
protected void beginIteration()
beginIteration in class EdgeIteratorprotected void endIteration()
endIteration in class EdgeIteratorprotected void nextEdge()
nextEdge in class EdgeIteratorpublic boolean hasNext()
EdgeIteratorhasNext in class EdgeIteratorpublic float getPointAX()
EdgeIteratorgetPointAX in class EdgeIteratorpublic float getPointAY()
EdgeIteratorgetPointAY in class EdgeIteratorpublic float getPointBX()
EdgeIteratorgetPointBX in class EdgeIteratorpublic float getPointBY()
EdgeIteratorgetPointBY in class EdgeIteratorpublic LineSegment getEdgeLineSegment()
EdgeIteratorLineSegment of the edgegetEdgeLineSegment in class EdgeIterator