kinetic
Class Speed

java.lang.Object
  |
  +--kinetic.TimeFilter
        |
        +--kinetic.Speed
All Implemented Interfaces:
java.io.Serializable

public class Speed
extends TimeFilter

timeplfilter the cahnges the rate of time by multiplying it. 2 -> twice as fast, 0.5 -> half normal speed

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          maintains speed change amount
 
Fields inherited from class kinetic.TimeFilter
duration, isDone, properties
 
Constructor Summary
Speed(double amount_val)
          creates new instance of Speed with a given amount
Speed(double amount_val, double dur)
          creates new instance of speed with given multiplier and lifespan
 
Method Summary
 double apply(double time)
          calculates new output value of time given input value of time
 
Methods inherited from class kinetic.TimeFilter
clear, getDuration, getPropertyList, isDone, PrepareVariables, reset, setDuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amount

public kinetic.KineticProperty amount
maintains speed change amount

Constructor Detail

Speed

public Speed(double amount_val)
creates new instance of Speed with a given amount

Parameters:
amount_val - time multiplier

Speed

public Speed(double amount_val,
             double dur)
creates new instance of speed with given multiplier and lifespan

Parameters:
amount_val - time multiplier
dur - (prefiltered)duration this filter is active for
Method Detail

apply

public double apply(double time)
calculates new output value of time given input value of time

Specified by:
apply in class TimeFilter
Parameters:
time - value of time
Returns:
processed out value of time