function DISTANCE.FROM.TAXI(TAXI.ENTITY, X, Y)

define TAXI.ENTITY as a pointer variable

define X,
       Y,
       XDIFF,
       YDIFF as double variables


let XDIFF = LOCATION.X(TAXI.ENTITY) - X
let YDIFF = LOCATION.Y(TAXI.ENTITY) - Y

return with SQRT.F(XDIFF * XDIFF + YDIFF * YDIFF)

end
