結果 : get line function from two points