Intersection of 2 line segments

Правка en1, от 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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ajecc 2018-09-12 20:13:46 323 Initial revision (published)