Class EDU.emporia.mathtools.ParametricCurve
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.emporia.mathtools.ParametricCurve

Object
   |
   +----EDU.emporia.mathtools.ParametricCurve

public class ParametricCurve
extends Object
implements Graphable
This is the base class for all parametric curves

Version:
1.0
Author:
Joe Yanik
Since:
7/7/00

Variable Index

 o tDelta
The minimum suggested t-value to be used in sketching the curve
 o tMax
The minimum suggested t-value to be used in sketching the curve
 o tMin
The minimum suggested t-value to be used in sketching the curve
 o title
The title describing the curve
 o x
The function describing the x-parameter for the curve
 o y
The function describing the x-parameter for the curve

Constructor Index

 o EDU.emporia.mathtools.ParametricCurve()
no-argument constructor
 o EDU.emporia.mathtools.ParametricCurve(MathFunction, MathFunction)
Version of the constructor that allows the curve to be described by two MathFunction objects

Method Index

 o getPoint(double)
Gets the point on the curve at the specified parameter.
 o getPoints(double, double, int)
Gets an array of points on the curve between the two specified t-values
 o getPoints(double, double, double)
Gets an array of points on the curve between the two specified t-values
 o getTDelta()
Gets the suggested distance between subsequent t-values in sketching the curve
 o getTMax()
Gets the maximum suggested value of t that to be used in parameterizing the curve
 o getTMin()
Gets the minimum suggested value of t that to be used in parameterizing the curve
 o getTitle()
Gets the title used to describe the curve.
 o setTDelta(double)
Sets the suggested distance between subsequent t-values in sketching the curve
 o setTMax(double)
Sets the maximum suggested value of t that to be used in parameterizing the curve
 o setTMin(double)
Sets the minimum suggested value of t that to be used in parameterizing the curve
 o setTitle(String)
Sets the title used to describe the curve.

Variables

 o tDelta
protected double tDelta
The minimum suggested t-value to be used in sketching the curve

 o tMax
protected double tMax
The minimum suggested t-value to be used in sketching the curve

 o tMin
protected double tMin
The minimum suggested t-value to be used in sketching the curve

 o title
protected java.lang.String title
The title describing the curve

 o x
protected EDU.emporia.mathtools.MathFunction x
The function describing the x-parameter for the curve

 o y
protected EDU.emporia.mathtools.MathFunction y
The function describing the x-parameter for the curve

Constructors

 o ParametricCurve
public ParametricCurve()
no-argument constructor

 o ParametricCurve
public ParametricCurve(MathFunction x,
                       MathFunction y)
Version of the constructor that allows the curve to be described by two MathFunction objects

Parameters:
x - The function defining the x-parameter
y - The function defining the y-parameter

Methods

 o getPoint
public EDU.emporia.mathtools.Point2D getPoint(double u)
Gets the point on the curve at the specified parameter.

Parameters:
u - The parameter for the point
Returns:
A point on the curve.
 o getPoints
public EDU.emporia.mathtools.Point2D[] getPoints(double uMin,
                                                 double uMax,
                                                 int numberOfPoints)
Gets an array of points on the curve between the two specified t-values

Parameters:
uMin - The minimum t-value determining the array
uMax - The maximum t-value determining the array
numberOfPoints - The number of points in the array
Returns:
An array of points on the curve
 o getPoints
public EDU.emporia.mathtools.Point2D[] getPoints(double uMin,
                                                 double uMax,
                                                 double delta)
Gets an array of points on the curve between the two specified t-values

Parameters:
uMin - The minimum t-value determining the array
uMax - The maximum t-value determining the array.
delta - The distance between subsequent t-values used in creating the array.
Returns:
An array of points on the curve
 o getTDelta
public double getTDelta()
Gets the suggested distance between subsequent t-values in sketching the curve

Returns:
The suggested distance between subsequent t-values in sketching the curve
 o getTMax
public double getTMax()
Gets the maximum suggested value of t that to be used in parameterizing the curve

Returns:
The maximum suggested value of t that to be used in parameterizing the curve
 o getTMin
public double getTMin()
Gets the minimum suggested value of t that to be used in parameterizing the curve

Returns:
The minimum suggested value of t that to be used in parameterizing the curve
 o getTitle
public java.lang.String getTitle()
Gets the title used to describe the curve.

Returns:
The title used to describe the curve.
 o setTDelta
public void setTDelta(double tDelta)
Sets the suggested distance between subsequent t-values in sketching the curve

Parameters:
tDelta - The suggested distance between subsequent t-values in sketching the curve
 o setTMax
public void setTMax(double tMax)
Sets the maximum suggested value of t that to be used in parameterizing the curve

Parameters:
tMax - The maximum suggested value of t that to be used in parameterizing the curve
 o setTMin
public void setTMin(double tMin)
Sets the minimum suggested value of t that to be used in parameterizing the curve

Parameters:
tMin - The minimum suggested value of t that will be used in parameterizing the curve
 o setTitle
public void setTitle(String title)
Sets the title used to describe the curve.

Parameters:
title - The title used to describe the curve.

All Packages  Class Hierarchy  This Package  Previous  Next  Index