com.threerings.probs
Class ColorFunctionVariable.VariableConstant
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.ColorFunctionVariable
com.threerings.probs.ColorFunctionVariable.VariableConstant
- All Implemented Interfaces:
- Exportable, com.threerings.io.Streamable, Copyable, Cloneable
- Enclosing class:
- ColorFunctionVariable
public static class ColorFunctionVariable.VariableConstant
- extends ColorFunctionVariable
Returns a constant function with a variable value.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
value
@Editable(mode="%INHERIT%")
public ColorVariable value
- The value to return.
ColorFunctionVariable.VariableConstant
public ColorFunctionVariable.VariableConstant()
getValue
public ColorFunction getValue(ColorFunction result)
- Description copied from class:
ColorFunctionVariable
- Computes a sample value according to the variable's distribution.
- Specified by:
getValue in class ColorFunctionVariable
- 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.