function distance = dist2 (x1, y1, x2, y2)
%DIST2 Calculate distance between two points
% This function ...
% and then does ...
% and returns ...

distance = sqrt((x2-x1).^2 + (y2-y1).^2);

