All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class improv.util.SinCurve

java.lang.Object
   |
   +----improv.util.Curve
           |
           +----improv.util.ParameterizedCurve
                   |
                   +----improv.util.SinCurve

public final class SinCurve
extends ParameterizedCurve

Constructor Index

 o SinCurve()
The Default Constructor
 o SinCurve(Curve, Curve, Curve)
Creates a SinCurve whose min,max and frequency are themselves time-varying parameters.
 o SinCurve(Curve, Curve, Curve, Curve, Curve, double, double, double, double, double)
Creates a SinCurve whose min, max, frequency, bias and gain are themselves time-varying parameters.
 o SinCurve(Curve[])
Creates a SinCurve from an array of curves.
 o SinCurve(Curve[], double, double, double, double, double)
 o SinCurve(double, double, double)
Constructs a SinCurve given a min, max and frequency
 o SinCurve(double, double, double, double, double)
Constructs a SinCurve given a min, max, frequency, bias and gain

Method Index

 o eval(double)
This is called from the animate method and is overridden by the individual curve classes.

Constructors

 o SinCurve
 public SinCurve()
The Default Constructor

 o SinCurve
 public SinCurve(double min,
                 double max,
                 double frq)
Constructs a SinCurve given a min, max and frequency

 o SinCurve
 public SinCurve(double min,
                 double max,
                 double frequency,
                 double bias,
                 double gain)
Constructs a SinCurve given a min, max, frequency, bias and gain

 o SinCurve
 public SinCurve(Curve c1,
                 Curve c2,
                 Curve c3)
Creates a SinCurve whose min,max and frequency are themselves time-varying parameters.

 o SinCurve
 public SinCurve(Curve a1,
                 Curve a2,
                 Curve f,
                 Curve b,
                 Curve g,
                 double a1Val,
                 double a2Val,
                 double fVal,
                 double bVal,
                 double gVal)
Creates a SinCurve whose min, max, frequency, bias and gain are themselves time-varying parameters.

 o SinCurve
 public SinCurve(Curve curves[])
Creates a SinCurve from an array of curves. If the array length is 3 the curves are used for min, max and frequency. If the array length is 5 the curves are used for min, max, frequency, bias and gain.

 o SinCurve
 public SinCurve(Curve curves[],
                 double a1Val,
                 double a2Val,
                 double fVal,
                 double bVal,
                 double gVal)

Methods

 o eval
 public double eval(double time)
This is called from the animate method and is overridden by the individual curve classes.

Overrides:
eval in class Curve

All Packages  Class Hierarchy  This Package  Previous  Next  Index