com.threerings.probs
Class ColorVariable.Constant
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.ColorVariable
com.threerings.probs.ColorVariable.Constant
- All Implemented Interfaces:
- Exportable, com.threerings.io.Streamable, Copyable, Cloneable
- Enclosing class:
- ColorVariable
public static class ColorVariable.Constant
- extends ColorVariable
Always returns the same value.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
value
@Editable(mode="%INHERIT%")
public Color4f value
- The value to return.
ColorVariable.Constant
public ColorVariable.Constant(ColorVariable variable)
- Creates a constant variable from the parameters of the other variable.
ColorVariable.Constant
public ColorVariable.Constant()
- No-arg constructor for deserialization, etc.
getValue
public Color4f getValue(Color4f result)
- Description copied from class:
ColorVariable
- Computes a sample value according to the variable's distribution.
- Specified by:
getValue in class ColorVariable
- Returns:
- a reference to the result value, for chaining.
getMean
public Color4f getMean(Color4f result)
- Description copied from class:
ColorVariable
- Computes the mean value.
- Specified by:
getMean in class ColorVariable
- Returns:
- a reference to the result value, for chaining.
Copyright © 2011. All Rights Reserved.