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

% function vector returns the vector that links the 2D or 3D points pa to pb.
function [vec]=vector(pa,pb)
   vec=(pb-pa)';
end 