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

% function norm2: Finds the unit normal to the left of the line joining the
% 2D points pa and pb
function [vecnor]=norm2(pa, pb)
    vect= vector(pa,pb);
    vect=vect/vecsize(vect);
    vecnor=[-vect(2); vect(1)];
end