通过斜截式反推B private float B(Point pt, float k) { //通过y = k x + b斜截式反推B float b = pt.Y - k * pt.X; return b; }
?