parametric equation of a line through 2 points. I know the equation is r(t) =
so i have 2 points: initial = <0, -.5, 0> terminal = <.1, -.5, 0>
if you set t = 2, the point isn't on the same line right?
get the direction vector by subtracting both the corrdinates
basically i'm creating a 3d program and i need to translate a distance (i guess being the parameter t) and plot it on the same line
direction vector = <.1, -.5, 0> - <0, -.5, 0> = ?
hrm what do you do with the direction vector tho?
oh i see so if you get the direction vector then you can just scale based on that
so it would be <.1, 0, 0> then if you wanted a distance of say 2, you just do 2 dot <.1, 0, 0>
but then how do you plot that on the same line?
line passing thru below two points : initial = <0, -.5, 0> terminal = <.1, -.5, 0> is r = <0, -.5, 0> + t<.1, 0, 0>
<,1, 0, 1> gives the direction, and the fixed point gives the location
you will get the terminal point, when \(t = 1\) ^
im not so sure ive answered ur question lol
erm not sure if it works out tho. here's an example initial = <0, -.5, 0> terminal = <.1, -.5, 0> r(t) = <.1T, -.5 - .5T, 0>, which comes from <0, -.5, 0> + T<.1, -.5, 0> then if say you wanted something past the terminal point, say a distance of 2 T = 2, so <.2, -1.5, 0> would be the answer, but this isn't on the same line
the answer should be <.2, -.5, 0>
direction vector doesn't look right
initial = <0, -.5, 0> terminal = <.1, -.5, 0> direction vector = <.1, 0, 0> equation of line is : r(t) = <0, -.5, 0> + t <.1, 0, 0>
plugin t = 2
ohhhhhhhhh so you use the direction vector as the terminal point
as the name says, direction vector just tells about the direction... in some sense, its like `m` in the 2d equaiton `y = mx+b`
ah ok that makes sense. thank you so much
np :)
good luck wid the program !!
Join our real-time social learning platform and learn together with your friends!