Class TimeCycleSplineSet
- java.lang.Object
-
- androidx.constraintlayout.core.motion.utils.TimeCycleSplineSet
-
- Direct Known Subclasses:
TimeCycleSplineSet.CustomSet,TimeCycleSplineSet.CustomVarSet
public abstract class TimeCycleSplineSet extends java.lang.ObjectThis engine allows manipulation of attributes by wave shapes oscillating in time
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeCycleSplineSet.CustomSetstatic classTimeCycleSplineSet.CustomVarSetprotected static classTimeCycleSplineSet.Sort
-
Field Summary
Fields Modifier and Type Field Description protected static intCURVE_OFFSETprotected static intCURVE_PERIODprotected static intCURVE_VALUEprotected float[]mCacheprotected booleanmContinueprotected intmCountprotected CurveFitmCurveFitprotected floatmLastCycleprotected longmLastTimeprotected int[]mTimePointsprotected java.lang.StringmTypeprotected float[][]mValuesprotected intmWaveShapeprotected static floatsVal2PI
-
Constructor Summary
Constructors Constructor Description TimeCycleSplineSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected floatcalcWave(float period)CurveFitgetCurveFit()voidsetPoint(int position, float value, float period, int shape, float offset)protected voidsetStartTime(long currentTime)voidsetType(java.lang.String type)voidsetup(int curveType)java.lang.StringtoString()
-
-
-
Field Detail
-
mCurveFit
protected CurveFit mCurveFit
-
mWaveShape
protected int mWaveShape
-
mTimePoints
protected int[] mTimePoints
-
mValues
protected float[][] mValues
-
mCount
protected int mCount
-
mType
protected java.lang.String mType
-
mCache
protected float[] mCache
-
CURVE_VALUE
protected static final int CURVE_VALUE
- See Also:
- Constant Field Values
-
CURVE_PERIOD
protected static final int CURVE_PERIOD
- See Also:
- Constant Field Values
-
CURVE_OFFSET
protected static final int CURVE_OFFSET
- See Also:
- Constant Field Values
-
sVal2PI
protected static float sVal2PI
-
mContinue
protected boolean mContinue
-
mLastTime
protected long mLastTime
-
mLastCycle
protected float mLastCycle
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setType
public void setType(java.lang.String type)
-
calcWave
protected float calcWave(float period)
- Parameters:
period- cycles per second
-
getCurveFit
public CurveFit getCurveFit()
-
setStartTime
protected void setStartTime(long currentTime)
-
setPoint
public void setPoint(int position, float value, float period, int shape, float offset)
-
setup
public void setup(int curveType)
-
-