net.moioli.drawables
Interface PlaneCurveI

All Known Implementing Classes:
AbstractPlaneCurve, ParsedPlaneCurve

public interface PlaneCurveI

A simple interface that defines a parametric mathematical function (x(t), y(t)).

Version:
2005/10/5
Author:
Silvio Moioli

Method Summary
 double getMaxT()
          Returns the maximum value the t parameter can assume.
 void setMaxT(double t)
          Sets the maximum value the t parameter can assume.
 double x(double t)
          Returns the x value corresponding to the specified t (any point in this function has coordinates (x(t),y(t)).
 double y(double t)
          Returns the y value corresponding to the specified t (any point in this function has coordinates (x(t),y(t)).
 

Method Detail

x

double x(double t)
Returns the x value corresponding to the specified t (any point in this function has coordinates (x(t),y(t)).

Parameters:
t - the parameter's value
Returns:
the point's abscissa

y

double y(double t)
Returns the y value corresponding to the specified t (any point in this function has coordinates (x(t),y(t)).

Parameters:
t - the parameter's value
Returns:
the point's ordinate

getMaxT

double getMaxT()
Returns the maximum value the t parameter can assume.

Returns:
the maximum t value

setMaxT

void setMaxT(double t)
Sets the maximum value the t parameter can assume.

Parameters:
t - the maximum t value