dist |
Class: B |
(legend) |
Operand Stack | Heap | Condition Codes |
|
N/A |
N/A |
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.