bookExamples.ch26Graphics.draw2d
Class CircleFcn

java.lang.Object
  extended by bookExamples.ch26Graphics.draw2d.CircleFcn
All Implemented Interfaces:
Fcn1

public class CircleFcn
extends java.lang.Object
implements Fcn1


Constructor Summary
CircleFcn(double radius)
           
CircleFcn(double xc, double yc, double radius)
           
 
Method Summary
 java.awt.geom.Point2D getPoint(double t)
          Fcn of one variable that returns a locus of points
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleFcn

public CircleFcn(double radius)

CircleFcn

public CircleFcn(double xc,
                 double yc,
                 double radius)
Method Detail

getPoint

public java.awt.geom.Point2D getPoint(double t)
Description copied from interface: Fcn1
Fcn of one variable that returns a locus of points

Specified by:
getPoint in interface Fcn1
Parameters:
t - - ranging from 0 to 1 inclusive
Returns:
a point on the function