Negate
derived from
value
Description: a value node that computes the negative of its last child
notes:
- derived nodes inherit all messages from their base classes
- see reset method for default settings
- all children must be value nodes
- child value nodes of any size can be used
- see the value node for more information
Category: Math
Author: Alex Hill
Revision: 11/01/01
constructor Negate
method app
1 if this node has size greater than zero and has children
1.1 for each value in the last child node do
1.1.1 if the element is less than the size of this node then
1.1.1.1 set the element value to the negative of the child value