public abstract class TimeCycleSplineSet
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeCycleSplineSet.CustomSet |
static class |
TimeCycleSplineSet.CustomVarSet |
protected static class |
TimeCycleSplineSet.Sort |
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected static int |
CURVE_OFFSET |
protected static int |
CURVE_PERIOD |
protected static int |
CURVE_VALUE |
protected float |
last_cycle |
protected long |
last_time |
protected float[] |
mCache |
protected boolean |
mContinue |
protected CurveFit |
mCurveFit |
protected int[] |
mTimePoints |
protected java.lang.String |
mType |
protected float[][] |
mValues |
protected int |
mWaveShape |
protected static float |
VAL_2PI |
| Constructor and Description |
|---|
TimeCycleSplineSet() |
| Modifier and Type | Method and Description |
|---|---|
protected float |
calcWave(float period) |
CurveFit |
getCurveFit() |
void |
setPoint(int position,
float value,
float period,
int shape,
float offset) |
protected void |
setStartTime(long currentTime) |
void |
setType(java.lang.String type) |
void |
setup(int curveType) |
java.lang.String |
toString() |
protected CurveFit mCurveFit
protected int mWaveShape
protected int[] mTimePoints
protected float[][] mValues
protected int count
protected java.lang.String mType
protected float[] mCache
protected static final int CURVE_VALUE
protected static final int CURVE_PERIOD
protected static final int CURVE_OFFSET
protected static float VAL_2PI
protected boolean mContinue
protected long last_time
protected float last_cycle
public java.lang.String toString()
toString in class java.lang.Objectpublic void setType(java.lang.String type)
protected float calcWave(float period)
period - cycles per secondpublic CurveFit getCurveFit()
protected void setStartTime(long currentTime)
public void setPoint(int position,
float value,
float period,
int shape,
float offset)
public void setup(int curveType)