com.threerings.expr
Class FloatExpression.Constant

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.expr.FloatExpression
          extended by com.threerings.expr.FloatExpression.Constant
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
FloatExpression

public static class FloatExpression.Constant
extends FloatExpression

A constant expression.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.expr.FloatExpression
FloatExpression.Add, FloatExpression.BinaryOperation, FloatExpression.Clock, FloatExpression.Constant, FloatExpression.Cos, FloatExpression.Divide, FloatExpression.Evaluator, FloatExpression.Exp, FloatExpression.Multiply, FloatExpression.Negate, FloatExpression.Noise1, FloatExpression.Noise2, FloatExpression.Parsed, FloatExpression.Pow, FloatExpression.Ramp, FloatExpression.Reference, FloatExpression.Remainder, FloatExpression.Saw, FloatExpression.Sin, FloatExpression.Square, FloatExpression.Subtract, FloatExpression.Tan, FloatExpression.Triangle, FloatExpression.UnaryOperation
 
Field Summary
 float value
          The value of the constant.
 
Constructor Summary
FloatExpression.Constant()
          Creates a new constant expression with a value of zero.
FloatExpression.Constant(float value)
          Creates a new constant expression with the specified value.
 
Method Summary
 FloatExpression.Evaluator createEvaluator(Scope scope)
          Creates an expression evaluator for the supplied context.
 
Methods inherited from class com.threerings.expr.FloatExpression
invalidate
 
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

value

@Editable(step=0.01)
public float value
The value of the constant.

Constructor Detail

FloatExpression.Constant

public FloatExpression.Constant(float value)
Creates a new constant expression with the specified value.


FloatExpression.Constant

public FloatExpression.Constant()
Creates a new constant expression with a value of zero.

Method Detail

createEvaluator

public FloatExpression.Evaluator createEvaluator(Scope scope)
Description copied from class: FloatExpression
Creates an expression evaluator for the supplied context.

Specified by:
createEvaluator in class FloatExpression


Copyright © 2011. All Rights Reserved.