You are on page 1of 1

A Line between (0,b) and (a,b) is given

(1): y=b
A line between (A1,A2) and (B1,B2) is given
(2): (x-A1)*(B2-A2)/(B1-A1)==y-A2
or
(2): (B2-A2)/(B1-A1)==(y-A2)/(x-A1)
an intersection of (1) and (2) is given:

x == ((A1 - B1)*b - A1*B2 + A2*B1)/(A2 - B2), y == b

You might also like