How can I tell if a point belongs to a certain line?

前端 未结 11 2193
你的背包
你的背包 2020-12-01 08:22

How can I tell if a point belongs to a certain line?

Examples are appreciated, if possible.

11条回答
  •  独厮守ぢ
    2020-12-01 08:58

    Equation of the line is:

    y = mx + c
    

    So a point(a,b) is on this line if it satisfies this equation i.e. b = ma + c

提交回复
热议问题