Find the intersection of two lines: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
→‎{{header|Python}}: Added an approach to doing this without importing a custom library
Hout (talk | contribs)
Line 1,018:
lrPoint = intersection(ab)(pq)
print(
lrPoint['RightLeft'] or lrPoint['LeftRight']
)
 
Line 1,049:
[(abDX, pqDX), (abDY, pqDY)]
)
return Right(point()) if determinant0 != 0determinant else Left(
'( Parallel lines - no intersection )'
)