Re: [Gambas-user] gb3: 2D ray-casting algorithm

2012-08-12 Thread Benoît Minisini
Le 12/08/2012 08:27, Kevin Fishburne a écrit : > I need to know if a point lies within a three-sided polygon (triangle) > on a 2D plane for combat hit detection in my game. Raw speed, not > mathematical purity is extremely important. I've read this: > > http://en.wikipedia.org/wiki/Point_in_polygon

[Gambas-user] gb3: 2D ray-casting algorithm

2012-08-11 Thread Kevin Fishburne
I need to know if a point lies within a three-sided polygon (triangle) on a 2D plane for combat hit detection in my game. Raw speed, not mathematical purity is extremely important. I've read this: http://en.wikipedia.org/wiki/Point_in_polygon and many more articles and posts and have come to th