C Algorithm For Finding The Segment Overlapping Two Collinear

C Algorithm For Finding The Segment Overlapping Two Collinear