Rotate any 2D object (specified by its vertices or by handle(s) to an imroi object) by angle theta (in degrees), about any center of rotation.
Create rotated rectangle or ellipse specified by its (unrotated) bounding box.
Specify center of rotation by point, or by corner or centroid of bounding box.
Includes shortcut functions rotateRectangle and rotateEllipse for convenience.
Brett Shoelson (2021). rotatedObject: Rotate any 2D object by handle, vertex list, or bounding box (https://www.mathworks.com/matlabcentral/fileexchange/49529-rotatedobject-rotate-any-2d-object-by-handle-vertex-list-or-bounding-box), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!