com.threerings.media.util
Class LinearTimeFunction

java.lang.Object
  extended by com.threerings.media.util.TimeFunction
      extended by com.threerings.media.util.LinearTimeFunction

public class LinearTimeFunction
extends TimeFunction

Varies a value linearly with time.


Field Summary
 
Fields inherited from class com.threerings.media.util.TimeFunction
_duration, _end, _start, _startStamp
 
Constructor Summary
LinearTimeFunction(int start, int end, int duration)
           
 
Method Summary
protected  int computeValue(int dt)
          This must be implemented by our derived class to compute our value given the specified elapsed time (in millis).
 
Methods inherited from class com.threerings.media.util.TimeFunction
fastForward, getValue, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearTimeFunction

public LinearTimeFunction(int start,
                          int end,
                          int duration)
Method Detail

computeValue

protected int computeValue(int dt)
Description copied from class: TimeFunction
This must be implemented by our derived class to compute our value given the specified elapsed time (in millis).

Specified by:
computeValue in class TimeFunction