com.threerings.probs
Class ColorFunctionVariable.VariableLinear

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.probs.ColorFunctionVariable
          extended by com.threerings.probs.ColorFunctionVariable.VariableLinear
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Enclosing class:
ColorFunctionVariable

public static class ColorFunctionVariable.VariableLinear
extends ColorFunctionVariable

Returns a linear function with independent variable start and end values.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.probs.ColorFunctionVariable
ColorFunctionVariable.Fixed, ColorFunctionVariable.VariableConstant, ColorFunctionVariable.VariableLinear
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Field Summary
 Easing easing
          The type of easing to use.
 ColorVariable end
          The value to return.
 ColorVariable start
          The value to return.
 
Constructor Summary
ColorFunctionVariable.VariableLinear()
           
 
Method Summary
 ColorFunction getValue(ColorFunction 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

start

@Editable(mode="%INHERIT%")
public ColorVariable start
The value to return.


end

@Editable(mode="%INHERIT%")
public ColorVariable end
The value to return.


easing

@Editable
public Easing easing
The type of easing to use.

Constructor Detail

ColorFunctionVariable.VariableLinear

public ColorFunctionVariable.VariableLinear()
Method Detail

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.