y

x

m = 0.5 (slider from -10 to 10, step 0.5)
n = 1.5 (slider from -10 to 10, step 0.5)
f(x) = m * x + n
A = Intersect(f, yAxis, 1)
B = Intersect(xAxis, yAxis)
a = Segment(A, B)