Class SinusVariation
- java.lang.Object
-
- org.eclipse.nebula.animation.movement.AbstractMovement
-
- org.eclipse.nebula.animation.movement.SinusVariation
-
- All Implemented Interfaces:
IMovement
public class SinusVariation extends AbstractMovement
This movement goes from 0 to 0 with intermediate values between -amplitude and amplitude. This is not an easing equation.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
amplitude
(package private) int
variations
-
Fields inherited from class org.eclipse.nebula.animation.movement.AbstractMovement
duration, max, min
-
-
Constructor Summary
Constructors Constructor Description SinusVariation(int nb, double amplitude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getValue(double step)
Get value at step 'step'-
Methods inherited from class org.eclipse.nebula.animation.movement.AbstractMovement
init
-
-
-
-
Method Detail
-
getValue
public double getValue(double step)
Description copied from interface:IMovement
Get value at step 'step'- Specified by:
getValue
in interfaceIMovement
- Specified by:
getValue
in classAbstractMovement
- Returns:
- current value.
- See Also:
IMovement.getValue(double)
-
-