Is In Triangle?
Blitz3D Forums/Blitz3D Beginners Area/Is In Triangle?
| ||
Has anybody managed to get the function in Code archives/Algorithms/Is In Triangle 2D to work? It always seems to return FALSE (0) as one of the checks (abc*(bc-bp+cp)>0) (abc*(ca-cp+ap)>0) (abc*(ab-ap+bp)>0) always results as '0 > 0'. I checked the original which has the same algo. Am I doing something wrong? Calling the function using... IsInTriangle(25,25,10,10,10,50,50,50) Thanks |
| ||
I've posted a sample of use. http://www.blitzbasic.com/codearcs/codearcs.php?code=483#comments |
| ||
Thanks Peter, I'll give it a play. |