com.threerings.opengl.effect
Class Easing
java.lang.Object
com.threerings.util.DeepObject
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 classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
|
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. |
Easing
public Easing()
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.