So basically, we create four lines. One is created by giving a point (x,y) and the slope, the second is created by giving two points (x1, y1) and (x2,y2), the third is created as an equation in slope intercept form y=mx+b, and the fourth is given as an equation x=a with the line being vertical. To do that, we create four constructors.
Then, we're supposed to implement methods to see if the lines intersect, equal each other, or are parallel. My problem is, I have no clue how to code up "Take slope of line one and compare it to line three" "Take slope of line 2 and compare it to line 1" in the methods. If anyone could provide some insight I'd greatly appreciate it. My code right now is terribly convoluted, I know.
Links to Pastebin:
pastebin.com/zGrZL0D7
pastebin.com/A1K18gAH