path
Class UnitCircleExample

java.lang.Object
  extended by path.UnitCircleExample
All Implemented Interfaces:
Path

public class UnitCircleExample
extends Object
implements Path

This demonstrates of the Path interface by constructing a circle. An instance of the UnitCircleExample class either represents the full unit circle or an arc of the unit circle.


Constructor Summary
UnitCircleExample()
          Construct a path representing the unit circle in the plane.
 
Method Summary
 Complex endingPoint()
          Return the ending point of this arc or circle.
 PathIterator iterator()
          Return an iterator over the sub-arcs.
static void main(String[] args)
          Print out the first several approximations of the unit circle by polygons.
 Complex startingPoint()
          Return the starting point of this arc or circle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitCircleExample

public UnitCircleExample()
Construct a path representing the unit circle in the plane.

Method Detail

endingPoint

public Complex endingPoint()
Return the ending point of this arc or circle.

Specified by:
endingPoint in interface Path

startingPoint

public Complex startingPoint()
Return the starting point of this arc or circle.

Specified by:
startingPoint in interface Path

iterator

public PathIterator iterator()
Return an iterator over the sub-arcs.

Specified by:
iterator in interface Path

main

public static void main(String[] args)
Print out the first several approximations of the unit circle by polygons.



Java Tutorial for Mathematics Students