com.threerings.probs
Class FloatFunctionVariable.VariableLinear
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.FloatFunctionVariable
com.threerings.probs.FloatFunctionVariable.VariableLinear
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Enclosing class:
- FloatFunctionVariable
public static class FloatFunctionVariable.VariableLinear
- extends FloatFunctionVariable
Returns a linear function with independent variable start and end values.
start
@Editable(min=-1d/0d,
max=-1d/0d,
step=-1d/0d,
scale=-1d/0d)
public FloatVariable start
- The start value.
end
@Editable(min=-1d/0d,
max=-1d/0d,
step=-1d/0d,
scale=-1d/0d)
public FloatVariable end
- The end value.
easing
@Editable
public Easing easing
- The type of easing to use.
FloatFunctionVariable.VariableLinear
public FloatFunctionVariable.VariableLinear()
getValue
public FloatFunction getValue(FloatFunction result)
- Description copied from class:
FloatFunctionVariable
- Computes a sample value according to the variable's distribution.
- Specified by:
getValue in class FloatFunctionVariable
- 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.