Seems like a beginner question maybe? So I posted it here.
Im creating a program that draws two lines to keep it simple and I know there is a method in Java2D to determine if 2 lines intersect but its possible to zoom in and out and when zooming out the lines can eventually intersect.
What I want to know is how I can accuratly calculate when I have coordinate for 2 lines, if they will cross or not, what calculations does the method ‘intersectLine()’ use to work this out?
Thanks,
Ken