Overview
Minimum bounding rectangle is commonly computed from a convex hull with rotating calipers over candidate edge orientations.
Finds the smallest-area rectangle that encloses a set of points or a convex polygon.
Compact metadata for implementation and discovery.
Minimum bounding rectangle is commonly computed from a convex hull with rotating calipers over candidate edge orientations.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n log n)
Average
O(n log n)
Worst
O(n log n)
Space
O(n)
area = width * heightScores each candidate orientation by its enclosing rectangle area.
Draw the input shapes, active tests, and generated geometric result.
Minimum Bounding Rectangle operates in O(n log n) time and O(n) space within the Bounding Geometry family. Key governing relation: area = width * height. Often compared with Rotating Calipers and Convex Hull.
What each reference supports for this entry.
Computational geometry textbook reference for the predicates or constructions used by Minimum Bounding Rectangle.
Good next jumps from the relationship graph, ranked for useful discovery.
The minimum rectangle can be found from the convex hull rather than all points.
Minimum-area bounding rectangles are commonly found by rotating calipers.