inside triangle
inside_triangle is used to check if a point P is inside
the triangle P1P2P3 or not.
Author: Nassim Khaled
I tried to use this function, but, it does not work for all test, for example
True=inside_triangle([25 20],[20 10],[25 30],[30 20]), basically it gives correct result that sum:75, area:75, but it gives true=0
or for another example;
True=inside_triangle([28.76 41.00],[28.7060 40.7020],[29.0592 41.0657],[28.7730 41.1810]) these values are lat. and lon. in degrees, and are in the triangle normally, but function gives True=0
What is the reason of that??