Rank: 104686 based on 0 downloads (last 30 days) and 0 files submitted
photo

seda

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by seda
Updated File Comments Rating
22 Aug 2011 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??

Seda Yelkenci

Contact us at files@mathworks.com