public class MappingNode extends ValueNode
ValueNode
that will update its value from its "initial" input to its "end" input
according to the given input within expected range [0, 1]. For example MappingNode
could
accept values emmited by InterpolatorNode
. The node can also extrapolate beyond the
output range if input goes beyond the expected input range.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
END_INPUT |
static java.lang.String |
INITIAL_INPUT |
DEFAULT_INPUT
Constructor and Description |
---|
MappingNode() |
Modifier and Type | Method and Description |
---|---|
protected float |
calculateValue(long frameTimeNanos)
This node should calculate and set a new value based on frame time and its parents (the nodes
it depends on).
|
public static final java.lang.String INITIAL_INPUT
public static final java.lang.String END_INPUT
protected float calculateValue(long frameTimeNanos)
ValueNode
calculateValue
in class ValueNode