|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.probs.FloatFunctionVariable
com.threerings.probs.FloatFunctionVariable.VariableThreePoint
public static class FloatFunctionVariable.VariableThreePoint
Returns a three-point function with independent variable start, middle, and end values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.probs.FloatFunctionVariable |
|---|
FloatFunctionVariable.Fixed, FloatFunctionVariable.VariableConstant, FloatFunctionVariable.VariableInAndOut, FloatFunctionVariable.VariableLinear, FloatFunctionVariable.VariableMultipoint, FloatFunctionVariable.VariableThreePoint |
| Field Summary | |
|---|---|
FloatVariable |
end
The end value. |
FloatVariable |
in
The proportional time to spend blending into the middle value. |
FloatVariable |
middle
The middle value. |
FloatVariable |
out
The proportional time to spend blending into the end value. |
FloatVariable |
start
The start value. |
| Constructor Summary | |
|---|---|
FloatFunctionVariable.VariableThreePoint()
|
|
| Method Summary | |
|---|---|
FloatFunction |
getValue(FloatFunction result)
Computes a sample value according to the variable's distribution. |
| 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 |
| Field Detail |
|---|
@Editable(min=-1d/0d,
max=-1d/0d,
step=-1d/0d,
scale=-1d/0d)
public FloatVariable start
@Editable(min=-1d/0d,
max=-1d/0d,
step=-1d/0d,
scale=-1d/0d)
public FloatVariable middle
@Editable(min=-1d/0d,
max=-1d/0d,
step=-1d/0d,
scale=-1d/0d)
public FloatVariable end
@Editable(min=0.0,
max=1.0,
step=0.01)
public FloatVariable in
@Editable(min=0.0,
max=1.0,
step=0.01)
public FloatVariable out
| Constructor Detail |
|---|
public FloatFunctionVariable.VariableThreePoint()
| Method Detail |
|---|
public FloatFunction getValue(FloatFunction result)
FloatFunctionVariable
getValue in class FloatFunctionVariableresult - an object to repopulate, if possible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||