public abstract class AbstractMovement extends java.lang.Object implements IMovement
Modifier and Type | Field and Description |
---|---|
protected double |
duration |
protected double |
max |
protected double |
min |
Constructor and Description |
---|
AbstractMovement() |
Modifier and Type | Method and Description |
---|---|
abstract double |
getValue(double step)
Get value at step 'step'
|
void |
init(double minValue,
double maxValue,
int steps)
Set up the movement.
|
public abstract double getValue(double step)
IMovement
getValue
in interface IMovement
IMovement.getValue(double)
public void init(double minValue, double maxValue, int steps)
IMovement
init
in interface IMovement
minValue
- - min (start) valuemaxValue
- - max( end ) valuesteps
- - number of stepsIMovement.init(double, double,
int)