I have a function f(x,z) that returns a height y in a terrain. I want to be able to determine where a line P intersects with the terrain.
A point P=[px,py,pz] along the line is defined as such:
P = O + D*t, where O is the origin of the line, D is the direction and t is some distance travelled from the origin.
Is it possible to compute the intersection between the line and the terrain with this information? If yes, then how?
fis not linear, and it is (in a sense) "unknown". – birgersp Oct 17 '17 at 14:11