public class LinearInOut extends AbstractMovement
Modifier and Type | Field and Description |
---|---|
(package private) double |
increment |
duration, max, min
Constructor and Description |
---|
LinearInOut() |
Modifier and Type | Method and Description |
---|---|
double |
getValue(double step)
Get value at step 'step'
|
void |
init(double min,
double max,
int steps)
Set up the movement.
|
public double getValue(double step)
IMovement
getValue
in interface IMovement
getValue
in class AbstractMovement
public void init(double min, double max, int steps)
IMovement
init
in interface IMovement
init
in class AbstractMovement
min
- - min (start) valuemax
- - max( end ) valuesteps
- - number of steps