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
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