edu.berkeley.guir.lib.awt.geom
Class SlowInSlowOut2Interpolation
java.lang.Object
|
+--edu.berkeley.guir.lib.awt.geom.Interpolation
|
+--edu.berkeley.guir.lib.awt.geom.SlowInSlowOut2Interpolation
- public class SlowInSlowOut2Interpolation
- extends Interpolation
Testing new slow-in-slow-out functions, from subArctic and artkit.
This software is distributed under the
Berkeley Software License.
Revisions: - GUIRLib-v1.3-1.0.0, Aug 17 1999, JH
Created class
- GUIRLib-v1.4-1.0.0, Aug 31 2000, JH
Touched for GUIRLib release
- Since:
- JDK 1.2.2
- Version:
- GUIRLib-v1.4-1.0.0, Aug 31 2000
- Author:
- Jason Hong (
jasonh@cs.berkeley.edu )
Method Summary |
double |
interpolate(double startValue,
double endValue,
int current,
int total)
Defines a function that can interpolate between two values. |
static void |
main(String[] argv)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlowInSlowOut2Interpolation
public SlowInSlowOut2Interpolation()
SlowInSlowOut2Interpolation
public SlowInSlowOut2Interpolation(double bounds,
double val)
- Parameters:
bounds
- represents two values: the percent of slow-in frames
(bounds), and the percent of slow-out frames (1 - bounds).
Thus, the number of normal frames is (1 - 2*bounds), and
the value of bounds must be <= 0.5.val
- represents the percent of physical time spent during
the slow-in and slow-out frames. This value must also
be <= 0.5.
interpolate
public double interpolate(double startValue,
double endValue,
int current,
int total)
- Description copied from class:
Interpolation
- Defines a function that can interpolate between two values. It should be
used like so:
for (int i = 0; i < total; i++) {
interpolate(0, 1, i, total);
}
- Overrides:
interpolate
in class Interpolation
- Following copied from class:
edu.berkeley.guir.lib.awt.geom.Interpolation
- Parameters:
startValue
- is our lower bound value.endValue
- is our goal value.current
- is the current step we are on (0 based).total
- is the total number of steps to take.
main
public static void main(String[] argv)