The line is:
Ax + By + Cz = D
Ex + Fy + Gz = H
I want any point (x,y,z) that satisfies those equations.
I've tried by choosing one coordinate to set to zero, then solving for the other two. This works correctly except:
1) I'm not sure of a reliable way to choose which coordinate to zero without causing numerical instability when some coefficients are zero or near zero.
2) It involves a lot of if statements which makes the code messy and hard to test all combinations of conditions.
Edit: I don't care which point it finds. It doesn't have to allow all of them to be found.