All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.gatech.cc.is.clay.v_Subtract_vv

java.lang.Object
   |
   +----EDU.gatech.cc.is.clay.Node
           |
           +----EDU.gatech.cc.is.clay.NodeVec2
                   |
                   +----EDU.gatech.cc.is.clay.v_Subtract_vv

public class v_Subtract_vv
extends NodeVec2
Subtract the vector output of two embedded NodeVec2s.

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

Copyright (c)1997, 1998 Tucker Balch

Version:
$Revision: 1.2 $
Author:
Tucker Balch

Variable Index

 o DEBUG
Turn debugging on or off.

Constructor Index

 o v_Subtract_vv(NodeVec2, NodeVec2)
Instantiate a v_Subtract_vv schema.

Method Index

 o Value(long)
Return a Vec2 representing the difference.

Variables

 o DEBUG
 public static final boolean DEBUG
Turn debugging on or off.

Constructors

 o v_Subtract_vv
 public v_Subtract_vv(NodeVec2 im1,
                      NodeVec2 im2)
Instantiate a v_Subtract_vv schema. It will compute im1-im2.

Parameters:
im1 - NodeVec2, the embedded node that generates a vector to be subtracted from.
im2 - NodeVec2, the embedded node that generates a vector subtracted from im1.

Methods

 o Value
 public Vec2 Value(long timestamp)
Return a Vec2 representing the difference.

Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the vector difference.
Overrides:
Value in class NodeVec2

All Packages  Class Hierarchy  This Package  Previous  Next  Index