|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.effect.FloatFunction
@EditorTypes(value={FloatFunction.Constant.class,FloatFunction.Linear.class,FloatFunction.InAndOut.class,FloatFunction.ThreePoint.class,FloatFunction.Multipoint.class})
public abstract class FloatFunctionProvides a float value based on a parameter ranging from 0 to 1.
| Nested Class Summary | |
|---|---|
static class |
FloatFunction.Constant
Returns a constant value. |
static class |
FloatFunction.InAndOut
A float function that blends linearly from a start value to an end value, then back to the start value. |
static class |
FloatFunction.Linear
Linearly interpolates between a start and an end value. |
static class |
FloatFunction.Multipoint
A float function that blends between an arbitrary number of values. |
static class |
FloatFunction.ThreePoint
A float function that blends linearly from a start value to a middle value, then to an end value. |
| Constructor Summary | |
|---|---|
FloatFunction()
|
|
| Method Summary | |
|---|---|
abstract FloatFunction |
copy(FloatFunction result)
Copies this function. |
abstract float |
getValue(float t)
Computes the value at the specified time. |
| 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 |
|---|
public FloatFunction()
| Method Detail |
|---|
public abstract float getValue(float t)
public abstract FloatFunction copy(FloatFunction result)
result - an object to repopulate, if possible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||