com.threerings.opengl.effect
Class Easing

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.effect.Easing
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
Easing.None, Easing.QuadraticIn, Easing.QuadraticInAndOut, Easing.QuadraticOut

@EditorTypes(value={Easing.None.class,Easing.QuadraticIn.class,Easing.QuadraticOut.class,Easing.QuadraticInAndOut.class})
public abstract class Easing
extends DeepObject
implements Exportable, com.threerings.io.Streamable

Represents the type of easing to use, which affects the time parameter. These functions mimic the ones by Robert Penner included in the Flex API. TODO: Allow control over the amount/duration of easing?


Nested Class Summary
static class Easing.None
          Performs no easing.
static class Easing.QuadraticIn
          Performs a simple quadratic ease-in.
static class Easing.QuadraticInAndOut
          Performs a simple ease-in and a simple ease-out.
static class Easing.QuadraticOut
          Performs a simple quadratic ease-out.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
Easing()
           
 
Method Summary
abstract  Easing copy(Easing result)
          Copies this easing function.
abstract  float getTime(float t)
          Computes the eased time based on the provided linear parameter.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Easing

public Easing()
Method Detail

getTime

public abstract float getTime(float t)
Computes the eased time based on the provided linear parameter.


copy

public abstract Easing copy(Easing result)
Copies this easing function.

Parameters:
result - an object to repopulate, if possible.
Returns:
either the result object, if it could be repopulated, or a new object containing the result.


Copyright © 2011. All Rights Reserved.