com.threerings.opengl.effect
Class FloatFunction

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.effect.FloatFunction
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
FloatFunction.Constant, FloatFunction.InAndOut, FloatFunction.Linear, FloatFunction.Multipoint, FloatFunction.ThreePoint

@EditorTypes(value={FloatFunction.Constant.class,FloatFunction.Linear.class,FloatFunction.InAndOut.class,FloatFunction.ThreePoint.class,FloatFunction.Multipoint.class})
public abstract class FloatFunction
extends DeepObject
implements Exportable

Provides a float value based on a parameter ranging from 0 to 1.


Nested Class Summary
static class FloatFunction.Constant
          Returns a constant value.
static class FloatFunction.InAndOut
          A float function that blends linearly from a start value to an end value, then back to the start value.
static class FloatFunction.Linear
          Linearly interpolates between a start and an end value.
static class FloatFunction.Multipoint
          A float function that blends between an arbitrary number of values.
static class FloatFunction.ThreePoint
          A float function that blends linearly from a start value to a middle value, then to an end value.
 
Constructor Summary
FloatFunction()
           
 
Method Summary
abstract  FloatFunction copy(FloatFunction result)
          Copies this function.
abstract  float getValue(float t)
          Computes the value at the specified time.
 
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
 

Constructor Detail

FloatFunction

public FloatFunction()
Method Detail

getValue

public abstract float getValue(float t)
Computes the value at the specified time.


copy

public abstract FloatFunction copy(FloatFunction result)
Copies this function.

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.