proguard.gui.splash
Class SineTiming

java.lang.Object
  extended by proguard.gui.splash.SineTiming

public class SineTiming
extends Object

This Timing varies between 0 and 1, as a sine wave over time.

Author:
Eric Lafortune

Constructor Summary
SineTiming(long period, long phase)
          Creates a new SineTiming.
 
Method Summary
 double getTiming(long time)
          Returns the timing for the given time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SineTiming

public SineTiming(long period,
                  long phase)
Creates a new SineTiming.

Parameters:
period - the time period for a full cycle.
phase - the phase of the cycle, which is added to the actual time.
Method Detail

getTiming

public double getTiming(long time)
Returns the timing for the given time.



Copyright © 2012. All Rights Reserved.