tmp contains the result as barycentric coordinate.
As i understand barycentric result:
tmp.x,tmp.y and tmp.z sould be between 0 and 1 if the line interssect the triangle.
and must be right tmp.x+tmp.y+tmp.z=1
But when i run my code, results are different:
ie : tmp.x+tmp.y+tmp.z=