結果 : get linear function from two points