// Class of lines, which are defined by two points. // @author Rance Cleaveland public class BuggyLine { private Point p1; private Point p2; public BuggyLine (Point p1, Point p2) { this.p1 = p1; this.p2 = p2; } public double slope () { return ((p1.getY() - p2.getY()) / (p1.getX() - p2.getX())); } }