Everything around the web is too complicated.
So, i have a triangle defined by array of three dots, and segment, defined by 2 dots. Dot = 3 floats. I want to know if they intersect. Also point of intersection will be helpful, but not as much.
and 5 coords (15 floats) for every case. I need just python code or math formula, and hopefully some info for starter.
Please, about python: start code with something like this:
plane = [[float(input('plane coord1 x:'), float(input('plane coord1 y:'), float(input('plane coord1 z:')], [float(input('plane coord2 x:'), float(input('plane coord2 y:'), float(input('plane coord2 z:')], [float(input('plane coord3 x:'), float(input('plane coord3 y:'), float(input('plane coord3 z:')]]
line = [[float(input('line coord1 x:'), float(input('line coord1 y:'), float(input('line coord1 z:')], [float(input('line coord2 x:'), float(input('line coord2 y:'), float(input('line coord2 z:')]]
or this:
plane = [[x1,y1,z1], [x2,y2,z2], [x3,y3,z3]]
line = [[X1,Y1,Z1], [X2,Y2,Z2]]