you can drag the points and move the slider
currently it only gets the middle of the line but not where c intercepts