.
errrrr... are you sure you can't plug the Point into the x y z?
oh distance formula...
point to the line distance formula use that.
you familiar wid vectors ?
say P' = <3, 0, 1>, then : direction vector : <-1, 1, 2> PP' = <5, -1, 0>
P' is just some point on the given line
once we have above, we can calculate the distance : 1) find the area of parallelogram formed by vectors : PP' and 'direction vector' 2) divide the area by base (magnitude of direction vector)
another brute-force way that might be a bit easier is to minimize the distance squared from point P to point (x(t),y(t),z(t)) on line L
area of parallelogram = PP' x direction vector = <5, -1, 0> x <-1, 1, 2>
minimizing distance works too, as we wil be having all square terms in the distance formula :)
so, distance = |<5, -1, 0> x <-1, 1, 2> | ---------------------- |<-1, 1, 2> |
good :) try minimizing the distance also... that involves oly algebra... u dont need calculus... thats the fastest way to find distance i feel
any point on the line is given by parameter : (3-t, t, 1+2t)
given point : P(-2, 1, 1)
plug in the - 2 1 1 to (3-t, t, 1+2t)
5 1 3
$$ D=|<x,y,z> - <-2,1,1>|\\ |<x+2,y-1,z-1>|\\ =\left ((x+2)^2+(y-1)^2+(z-1)^2\right )^{1/2}\\ $$ Now substitute x=3-t, y=t,z=1+2t: $$ D= \sqrt{6 t^2-12 t+26} $$
consider minimizing D^2, a quadratic function (6 t^2-12 t+26)
D^2 is has a minimum of 20 at t=1; thus the minimum distance, sqrt(D^2), is sqrt(20)
Join our real-time social learning platform and learn together with your friends!