EDU.gatech.cc.is.clay
Class va_FilterClose_va

java.lang.Object
  |
  +--EDU.gatech.cc.is.clay.Node
        |
        +--EDU.gatech.cc.is.clay.NodeVec2Array
              |
              +--EDU.gatech.cc.is.clay.va_FilterClose_va

public class va_FilterClose_va
extends NodeVec2Array

Keep Vec2s that are close to 0,0.

For detailed information on how to configure behaviors, see the Clay page.

Copyright (c)1997, 1998 Tucker Balch


Field Summary
static boolean DEBUG
          Turns debug printing on or off.
 
Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
va_FilterClose_va(double r, NodeVec2Array im2)
          Instantiate a va_FilterClose_va node.
 
Method Summary
 Vec2[] Value(long timestamp)
          Return a filtered Vec2Array.
 
Methods inherited from class EDU.gatech.cc.is.clay.Node
initTrial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Turns debug printing on or off.
Constructor Detail

va_FilterClose_va

public va_FilterClose_va(double r,
                         NodeVec2Array im2)
Instantiate a va_FilterClose_va node.
Parameters:
r - how close things must be to be kept.
im2 - NodeVec2Arry, the embedded node that generates a list of items to filter.
Method Detail

Value

public Vec2[] Value(long timestamp)
Return a filtered Vec2Array.
Overrides:
Value in class NodeVec2Array
Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the filtered array of Vec2s.