2D DISTANCE SOLVER


© Ian Mitchell 2017 Ian.Mitchell_002@gmx.com
MIT License


This function follows the formula

d = |(x_1 - x_2) + (y_1 + y_2)|.

In order to run the function, use the command

dist2(x1,y1,x2,y2)

and you’ll get a number. That number (or expression) will be the distance between two points in a carteisian plane.