Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 572 Bytes

README.md

File metadata and controls

6 lines (5 loc) · 572 Bytes

Collision-Detection

Geometrical algorithm for finding the first intersection point of two simple polygons

Problem solved with this project

Write a program that, given two simple and disjoint polygons P and Q, where P lies strictly to the left of Q, computes the first points on the polygons that will collide if P is translated horizontally and in the positive x-direction, or determines that they do not collide. Upper bounds: O((n+m) log(n+m)) time, where n=|P| and m=|Q|. alt tag