de.lessvoid.nifty.tools.time.interpolator
Class ExpTime

java.lang.Object
  extended by de.lessvoid.nifty.tools.time.interpolator.ExpTime
All Implemented Interfaces:
Interpolator

public class ExpTime
extends Object
implements Interpolator

Interpolates a value exponential from 0.0 to 1.0 with the given time parameters.

Author:
void

Constructor Summary
ExpTime()
           
 
Method Summary
 float getValue(long lengthParameter, long timePassed)
          get a new value.
 void initialize(Properties parameter)
          initialize.
 void start()
          In case the Interpolator wants to set some value when started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpTime

public ExpTime()
Method Detail

initialize

public final void initialize(Properties parameter)
Description copied from interface: Interpolator
initialize.

Specified by:
initialize in interface Interpolator
Parameters:
parameter - parameter

start

public void start()
Description copied from interface: Interpolator
In case the Interpolator wants to set some value when started.

Specified by:
start in interface Interpolator

getValue

public final float getValue(long lengthParameter,
                            long timePassed)
Description copied from interface: Interpolator
get a new value.

Specified by:
getValue in interface Interpolator
Parameters:
lengthParameter - effect length in ms
timePassed - time already passed in ms
Returns:
calculated value


Copyright © 2011. All Rights Reserved.