Pergunta de entrevista da empresa Rockstar Games

Find the intersection of a ray with a triangle.