Challenge: Intersection of Lines
Complete the intersection of lines challenge.
Intersection of two lines
Write a Java code to check if the two lines and intersect. Return true
if they intersect and false
if they don’t.
Check each point of both lines and their respective positions. The and points are shown in the illustration below.
Note: Don’t worry if you need help. You can see the solution by clicking the “Show Solution” button.
Access this course and 1400+ top-rated courses and projects.