Two parallel supporting lines rotate around a convex polygon — antipodal pairs reveal the diameter, width, and minimum-area rectangle
| Operation | Time |
|---|---|
| Convex hull (preprocess) | O(n log n) |
| Diameter sweep | O(n) |
| Width sweep | O(n) |
| Min-area rectangle | O(n) |
| Brute force (all pairs) | O(n²) |
| Space | O(n) |