1 function signn=line_sign(x1,y1,x2,y2,x3,y3)
\r
3 % Volodymyr Kondratenko August 2011
\r
5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
7 % Defines from which sideof the line going through (x1,y1,x2,y2) lies x3,y3
\r
8 % if sign is positive -> from one side, negative -> from another
\r
9 signn=(y3-y1)*(x2-x1)-(y2-y1)*(x3-x1);
\r