hmi.elckerlyc.util.timemanipulator
Class GammaManipulator

java.lang.Object
  extended by hmi.elckerlyc.util.timemanipulator.GammaManipulator
All Implemented Interfaces:
TimeManipulator

public class GammaManipulator
extends Object
implements TimeManipulator

manip(t)=t^gamma gamma < 1 gives a fast-to-slow interpolation gamma > 1 gives a slow-to-fast interpolation

Author:
welberge

Field Summary
private  double gamma
           
 
Constructor Summary
GammaManipulator(double g)
          Constructor
 
Method Summary
 double manip(double t)
          manipulates t
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gamma

private double gamma
Constructor Detail

GammaManipulator

public GammaManipulator(double g)
Constructor

Parameters:
g - the gamma value
Method Detail

manip

public double manip(double t)
manipulates t

Specified by:
manip in interface TimeManipulator
Parameters:
t - : time to manipulate
Returns:
t^gamma