已知直线上一点(x1,y1,)并且存在直线的斜率k,则直线可表示y-y1=k(x-x1)
x截距计算公式,当y等于0时:
0-y1=k(x-x1)
-y1=k*x-k*x1
k*x=k*x1-y1
x=(k*x1-y1)/k
x=x1-k*y1
y截距计算公式,当x等于0时:
y-y1=k(0-x1)
y=-k*x1+y1
posted on 2017-02-08 15:56 kingBook 阅读(757) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 kingBook Powered by .NET 9.0 on Kubernetes