ORIENTEDBOX Minimum-width oriented bounding box of a set of points.
OBOX = orientedBox(PTS)
Computes the oriented bounding box of a set of points. Oriented box is
defined by a center, two dimensions (the length and the width), and the
orientation of the length axis. Orientation is counted in degrees,
counter-clockwise.
Example
% Draw oriented bounding box of an ellipse
elli = [30 40 40 20 30];
pts = ellipseToPolygon(elli, 120);
obox = orientedBox(pts);
figure; hold on;
drawEllipse(elli);
drawOrientedBox(obox, 'm');
See also
drawOrientedBox, orientedBoxToPolygon
Package: matgeom