|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolygonalPath
A PolygonalPath is a sequence of edges. We implicitly assume that the end point of an edge coincides with the starting point of the next edge. A PolygonalPath extends Segment, because a path should have a beginning and an end. It includes an iterator() function which allows the user to iterate over the edges of the path. Here, we take a general view of what an edge is, as in the Segment class. So, an edge can be anything with a beginning and an end. The rationale for this is explained as part of my tutorial.
Method Summary | |
---|---|
Complex |
endingPoint()
Return the endpoint. |
EdgeIterator |
iterator()
Return an iterator over the segments making up the polygonal path. |
Complex |
startingPoint()
Return the starting point. |
Method Detail |
---|
Complex startingPoint()
Complex endingPoint()
EdgeIterator iterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |