//  Represents a geometric line object
public class GLine {
	// Add the necessary fields

	//  Use this when checking to see if two floating-point values are equal
	private static boolean equals(double a, double b) {
		return a == b || Math.abs(a - b) < 0.001;
	}

	// Complete this constructor
	public GLine(double slope, double intercept) {
		// Add your code
	}

	// Complete this constructor
	public GLine(double x1, double y1, double x2, double y2) {
		// Add your code
	}

	// Complete this constructor
	public GLine(GPoint p1, GPoint p2) {
		// Add your code
	}

	// Returns the slope of this line
	public double getSlope() {
		return 0.0; // Replace with your code
	}

	// Returns the intercept of this line
	// y intercept if the line is non-vertical, or
	// x intercept if the line is vertical
	public double getIntercept() {
		return 0.0; // Replace with your code
	}

	// Computes the intersection point of a given line with this line
	// and y = m2x + b1.
	public GPoint intersection(GLine other) {
		return new GPoint(Double.MAX_VALUE, Double.MAX_VALUE); // Replace with your code
	}

	// Return the equation for this line in
	// slope-intercept form
	public String toString() {
		return "Line"; // Replace with your code
	}
}
