path
Interface PolygonalPath

All Known Implementing Classes:
PolygonalApproximation, VertexPath

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

startingPoint

Complex startingPoint()
Return the starting point.


endingPoint

Complex endingPoint()
Return the endpoint.


iterator

EdgeIterator iterator()
Return an iterator over the segments making up the polygonal path.



Java Tutorial for Mathematics Students