interpolate derived from value Example Source Header

Description: an array that interpolates between a start array and an end array

notes:
Category: Math
Author: Alex Hill
Revision: 11/01/01

    Messages
input float, [integer] set the input for all or a single array element
inputs multiple floats set the input for all array elements
startValue float, [integer] set the value of a single start array element
startValues multiple floats set the values of all start array elements
endValue float, [integer] set the value of a single end element
endValues multiple floats set the values of all end array elements
    Comments

constructor interpolate

destructor ~interpolate

method reset

1 set inputs size to 1
2 initialize input value to 0.0
3 set startvalues and endvalues size to 1
4 initialize start value to 0.0
5 initialize end value to 1.0

method setValueSize

method message

1 set the input for all or a single array element
2 set the input for all array elements
3 set the value of a single start array element
4 set the values of all start array elements
5 set the value of a single end element
6 set the values of all end array elements

method app

1 if this node has size greater than zero and has children
1.1 if child size is greater than one
1.1.1 for each value in the last child node do
1.1.1.1 if the element is less than the size of this node then
1.1.1.1.1 set the element value to the interpolated value of the child value
1.1.1 retrieve the value of the child node
1.1.2 for each element in the array do
1.1.2.1 set the element value to the interpolated value of the value