path
Class PolygonalApproximation

java.lang.Object
  extended by path.PolygonalApproximation
All Implemented Interfaces:
PolygonalPath

public class PolygonalApproximation
extends Object
implements PolygonalPath

Construct a new polygonal path which iterates through sub-paths at a certain depth. Depth zero is equivalent to the original path.


Constructor Summary
PolygonalApproximation(Path path, int subdivision_depth)
          Construct a version of the path whose iterator moves over sub-paths of the given depth
 
Method Summary
 Complex endingPoint()
          Return the ending point of the path.
 EdgeIterator iterator()
          Iterate over the sub-paths making up the path.
 Complex startingPoint()
          Return the starting point of the path.
 String toString()
          Convert the path to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolygonalApproximation

public PolygonalApproximation(Path path,
                              int subdivision_depth)
Construct a version of the path whose iterator moves over sub-paths of the given depth

Method Detail

iterator

public EdgeIterator iterator()
Iterate over the sub-paths making up the path.

Specified by:
iterator in interface PolygonalPath

endingPoint

public Complex endingPoint()
Return the ending point of the path.

Specified by:
endingPoint in interface PolygonalPath

startingPoint

public Complex startingPoint()
Return the starting point of the path.

Specified by:
startingPoint in interface PolygonalPath

toString

public String toString()
Convert the path to a string.

Overrides:
toString in class Object


Java Tutorial for Mathematics Students