dist

Class: B

(legend)

Operand Stack Heap Condition Codes
  • Initial (operands):
    location, value, or reading
    location, value, or reading
  • Final (return values):
    value
N/A
N/A

Description

Pops two variables off the operand stack. If the two variables are both locations or values, this calculates the distance between them. Values are first translated into a location based on the grid topology. The distance is calcualted using |x1-x2|^2 + |y1-y2|^2. If the two variables are both sensor readings, this calculates how far apart they are.



This page was last updated on January 19, 2006 0:14 AM.
This work is supported by the ONR MURI Project CONTESSA and the NSF under grant number CCR-9970939.