org.eclipse.nebula.animation.movement
Class SinusDecreaseVariation

java.lang.Object
  extended byorg.eclipse.nebula.animation.movement.AbstractMovement
      extended byorg.eclipse.nebula.animation.movement.SinusDecreaseVariation
All Implemented Interfaces:
IMovement

public class SinusDecreaseVariation
extends AbstractMovement

This is not an easing equation. This movement goes from f(0)=0 to f(t)=0 with intermediate values between -amplitude and amplitude an decreasing with time.

Author:
Nicolas Richeton

Constructor Summary
SinusDecreaseVariation(int nb, double amplitude)
           
 
Method Summary
 double getValue(double step)
          Get value at step 'step'
 
Methods inherited from class org.eclipse.nebula.animation.movement.AbstractMovement
init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinusDecreaseVariation

public SinusDecreaseVariation(int nb,
                              double amplitude)
Method Detail

getValue

public double getValue(double step)
Description copied from interface: IMovement
Get value at step 'step'

Specified by:
getValue in interface IMovement
Specified by:
getValue in class AbstractMovement