DRAWORIENTEDBOX Draw centered oriented rectangle. Syntax drawOrientedBox(BOX) drawOrientedBox(BOX, 'PropertyName', propertyvalue, ...) Description drawOrientedBox(OBOX) Draws an oriented rectangle (or bounding box) on the current axis. OBOX is a 1-by-5 row vector containing box center, dimension (length and width) and orientation (in degrees): OBOX = [CX CY LENGTH WIDTH THETA]. When OBOX is a N-by-5 array, the N boxes are drawn. drawOrientedBox(AX, ...) Specifies the axis to draw to point in. AX should be a handle to a axis object. By default, display on current axis. HB = drawOrientedBox(...) Returns a handle to the created graphic object(s). Object style can be modified using syntaw like: set(HB, 'color', 'g', 'linewidth', 2); Example % draw an ellipse together with its oriented box elli = [30 40 60 30 20]; figure; drawEllipse(elli, 'linewidth', 2, 'color', 'g'); hold on box = [30 40 120 60 20]; drawOrientedBox(box, 'color', 'k'); axis equal; See also orientedBox, drawPolygon, drawRect, drawBox, drawCenteredEdge ------ Author: David Legland e-mail: david.legland@grignon.inra.fr Created: 2011-05-09, using Matlab 7.9.0.529 (R2009b) Copyright 2011 INRA - Cepia Software Platform.
Package: matgeom