Abstract
We provide a remarkably simple algorithm to compute all (at most four) common tangents of two disjoint simple polygons. Given each polygon as a read-only array of its corners in cyclic order, the algorithm runs in linear time and constant workspace and is the first to achieve the two complexity bounds simultaneously. The set of common tangents provides basic information about the convex hulls of the polygons-whether they are nested, overlapping, or disjoint-and our algorithm thus also decides this relationship.
Original language | English |
---|---|
Article number | 12 |
Journal | ACM Transactions on Algorithms |
Volume | 15 |
Issue number | 1 |
Pages (from-to) | 1-21 |
ISSN | 1549-6325 |
DOIs | |
Publication status | Published - Dec 2018 |