|
"kamuran turksoy" <kamuranturksoy@gmail.com> wrote in message <k4csmc$hr0$1@newscl01ah.mathworks.com>...
> How can i find the intersection of a line and a parabola in 3D?
> For example a line between two points p1 (x1,y1,z1) and p2(x2,y2,z2)
> and parabola P: z=2*x^2+2*y^2-1
>
> I want to find their intersection. Or for given points find whether the line is intersect with parabola (in 3D) or not?
the parametric equations for the line are
x(t)= x1+t*(x2-x1);
y(t)= y1+t*(y2-y1);
z(t)= z1+t*(z2-z1);
Substituting [x(t),y(t),z(t)] into the equation for the parabola will give you a quadratic 1D equation in t. If it has a real solution(s), then an intersection occurs.
|