I am calculating the distance between two points with the code:
Code: Select all
If distance_metric=1
distance_xx=Abs(x1-Int(x2))
distance_yy=Abs(y1-Int(y2))
distance=distance_xx
If distance_yy>distance_xx : distance=distance_yy : EndIf
; Return the distance
ProcedureReturn distance
EndIf
Code: Select all
If distance_yy>distance_xx : distance=distance_yy : EndIf
distance=maximumvalue(distance_xx,distance_yy)
?
Thanks!