i have two points in 3D space which have X-coordinates with different signum. so one of them lies definitely on one side of the X-plane and one on the other.
now i want to find the intersection of this plane and the line made up by the two points in the most simple and optimized way.
i know how to do general line plane intersection, but since in this case the plane is just the x-plane, i think there should be some shortcuts i can take.
thanks!
Connect the two points and get the equation of line using two-point form (the 3D generalization is simple).
Then solve the equation for x = 0.
After you’ve got the solutions, translate them into your programming language.