% Online source www.appliedmathematics.info/software/mfiles/dist.m
% Online user guide www.appliedmathematics.info/software/mfiles/GEOM_m.htm

% function dist: Returns the distance between two points pa and pb (2D or 3D).
function distance=dist(pa, pb)
    vec=vector(pa, pb);
    distance = vecsize(vec);
end