- #1
sognostella
- 4
- 0
1. A better way to find the point of intersection of two lines is parametrically as two linear interpolations b/w inital and final points.
x=(1-s)x1+sx2
y=(1-s)y1+sy2
where x1 and y1 are the inital points and x2,y2 are the final points.
(-6,-6) (5,2)
x=(1-t)x3+tx4
y=(1-t)y3+ty4
where x3 and y3 are the inital points and x4 &y4 are the final points.
(3,-3) (1,3)
2. how do you find intersection with these two variables
3. The Attempt at a Solution
set x(t)=y(t) and solve for t
t= (x3-y3)/(x3-x4-y3-y4)
set t into the x(t) & y(t)
x(s)=y(s)
s= (x1-y1)/(x1-x2-y1-y2)
set s into the x(s) & y(s)
then set x(s)=x(t) and y(s)=y(t)
What did i do wrong?
Another attempt:
setting set x(s)=x(t) and y(s)=y(t), gives me two equations with unknown (s &t) after i find s and t i can plug one into the equations to find intersection. but how do i find s or t?
x=(1-s)x1+sx2
y=(1-s)y1+sy2
where x1 and y1 are the inital points and x2,y2 are the final points.
(-6,-6) (5,2)
x=(1-t)x3+tx4
y=(1-t)y3+ty4
where x3 and y3 are the inital points and x4 &y4 are the final points.
(3,-3) (1,3)
2. how do you find intersection with these two variables
3. The Attempt at a Solution
set x(t)=y(t) and solve for t
t= (x3-y3)/(x3-x4-y3-y4)
set t into the x(t) & y(t)
x(s)=y(s)
s= (x1-y1)/(x1-x2-y1-y2)
set s into the x(s) & y(s)
then set x(s)=x(t) and y(s)=y(t)
What did i do wrong?
Another attempt:
setting set x(s)=x(t) and y(s)=y(t), gives me two equations with unknown (s &t) after i find s and t i can plug one into the equations to find intersection. but how do i find s or t?