rotatedObject: Rotate any 2D object by handle, vertex list, or bounding box
Version 1.1.0.1 (6.38 KB) by
Brett Shoelson
Easily rotate any 2D object: rectangles, ellipses, imrois, xy-coordinates
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.
Cite As
Brett Shoelson (2026). rotatedObject: Rotate any 2D object by handle, vertex list, or bounding box (https://uk.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
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
Find more on Geometric Transformation and Image Registration in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
