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
-
tDelta
- The minimum suggested t-value to be used in sketching the curve
-
tMax
- The minimum suggested t-value to be used in sketching the curve
-
tMin
- The minimum suggested t-value to be used in sketching the curve
-
title
- The title describing the curve
-
x
- The function describing the x-parameter for the curve
-
y
- The function describing the x-parameter for the curve
-
EDU.emporia.mathtools.ParametricCurve()
- no-argument constructor
-
EDU.emporia.mathtools.ParametricCurve(MathFunction, MathFunction)
- Version of the constructor that allows the curve to be described by two MathFunction
objects
-
getPoint(double)
- Gets the point on the curve at the specified parameter.
-
getPoints(double, double, int)
- Gets an array of points on the curve between the two specified t-values
-
getPoints(double, double, double)
- Gets an array of points on the curve between the two specified t-values
-
getTDelta()
- Gets the suggested distance between subsequent t-values in sketching the curve
-
getTMax()
- Gets the maximum suggested value of t that to be used in parameterizing the curve
-
getTMin()
- Gets the minimum suggested value of t that to be used in parameterizing the curve
-
getTitle()
- Gets the title used to describe the curve.
-
setTDelta(double)
- Sets the suggested distance between subsequent t-values in sketching the curve
-
setTMax(double)
- Sets the maximum suggested value of t that to be used in parameterizing the curve
-
setTMin(double)
- Sets the minimum suggested value of t that to be used in parameterizing the curve
-
setTitle(String)
- Sets the title used to describe the curve.
tDelta
protected double tDelta
- The minimum suggested t-value to be used in sketching the curve
tMax
protected double tMax
- The minimum suggested t-value to be used in sketching the curve
tMin
protected double tMin
- The minimum suggested t-value to be used in sketching the curve
title
protected java.lang.String title
- The title describing the curve
x
protected EDU.emporia.mathtools.MathFunction x
- The function describing the x-parameter for the curve
y
protected EDU.emporia.mathtools.MathFunction y
- The function describing the x-parameter for the curve
ParametricCurve
public ParametricCurve()
- no-argument constructor
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
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.
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
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
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
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
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
getTitle
public java.lang.String getTitle()
- Gets the title used to describe the curve.
- Returns:
- The title used to describe the curve.
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
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
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
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