Skip to content

Files

Latest commit

Aug 23, 2011
1aaf104 · Aug 23, 2011

History

History

segment-intersection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 23, 2011
Aug 23, 2011
Aug 23, 2011
Aug 23, 2011
Aug 23, 2011
A program that given 4 vectors ( A, B, C and D ), determines if AB intersects CD.

INPUT:
    Four lines, each one containing the coordinates( x, y ) of a vector. eg: 1 5
OUTPUT:
    T if AB intersects CD.
    F if AB does not intersect CD.


http://en.wikipedia.org/wiki/Line_segment_intersection