Point inside a triangle

Monkey Forums/Monkey Code/Point inside a triangle

JIM(Posted 2011) [#1]
Hey guys,

Here's a function that checks if a point is inside a triangle. It uses barycentric coordinates to speed things up.



Here's a quick example to test it:



Enjoy! :)