![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学公式
mycn027
这个作者很懒,什么都没留下…
展开
-
通过斜截式反推B
private float B(Point pt, float k) { //通过y = k x + b斜截式反推B float b = pt.Y - k * pt.X; return b; }原创 2013-03-26 16:13:27 · 335 阅读 · 0 评论 -
求两点之间的距离
private float Length(Point ptB, Point ptE) { float xLength = ptE.X - ptB.X; float yLength = ptE.Y - ptB.Y; float length = (float)Math.Sqrt((double)(x...原创 2013-03-26 16:14:44 · 162 阅读 · 0 评论 -
已知直线k,x,b参数求Y
private float Y(float k, float x, float b) { //y = k x + b float y = k * x + b; return y; }原创 2013-03-26 16:15:47 · 159 阅读 · 0 评论 -
直线求斜率
private float K(Point ptB, Point ptE) { //k=tanα=(y2-y1)/(x2-x1) return ((float)(ptE.Y - ptB.Y)) / ((float)(ptE.X - ptB.X)); }原创 2013-03-26 16:19:20 · 267 阅读 · 0 评论