package ch05_3;
public class Line {
	private double k;
	private double b;
	public Line(double x,double y){
	    this.k=x;
	    this.b=y;
	}
	public double juLi(double x,double y){  // 其中形参为点坐标值（x,y）
	    double d=Math.abs(this.k*x-y+this.b)+Math.sqrt(this.k*this.k+1);
	    return d;
	}
	public boolean panDing(Line l2){  //其中形参为直线对象变量
	    boolean b=false;
		if(this.k==l2.k){
	    	    b=true;
	     }
		return b;
	}
}
