Intersection of 2 line segments

Revision en1, by ajecc, 2018-09-12 20:13:46

Can somebody explain how we can find the intersection of 2 line segments using only integer arithmetic (like this solution to a problem in a recent round 42626026)? I know how we can test if they intersect (with cross product), but I can't figure out how to find the exact point.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ajecc 2018-09-12 20:13:46 323 Initial revision (published)