t=crosstest2(p,pa,pb)
p : | point to test | |
pa : | start point of line | |
pb : | end point of line |
t : | -1==cross; 0== on the line; +1 nothing known |
crosstest2 ([ 0 0], [5 -5], [5 +5])
crosstest2 ([10 0], [5 -5], [5 +5])
crosstest2 ([ 5 0], [5 -5], [5 +5])