Makefile MSLEEP
[wrf-fire-matlab.git] / ignition / line_sign.m
blobad83126a0aa669e0f503aebc55a52feb0386c643
1 function signn=line_sign(x1,y1,x2,y2,x3,y3)\r
2 \r
3 % Volodymyr Kondratenko           August 2011\r
4 \r
5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
6 \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
10 end\r