FUNCTION REFERENCE
simtform2d
2-D similarity transformation object: scale, rotation, translation (value class).
2-D similarity transformation object: scale, rotation, translation (value class).
Syntax
tform = simtform2dSyntax
tform = simtform2d(s, r, t)Syntax
tform = simtform2d(s, R, t)Syntax
tform = simtform2d(A)Syntax
tform = simtform2d(tformIn)s > 0 is the scale, r the counterclockwise angle in degrees (or R the rotation matrix) and t = [tx ty]; A = [s*R t'; 0 0 1]. Properties: Dimensionality (read-only), Scale, RotationAngle (in [-180, 180)), Translation, R (without the scale) and A; setting any of the last five updates the others. Reflections are rejected.
Example
t = simtform2d(2, 90, [0 0]); [x, y] = transformPointsForward(t, 1, 0) % 0, 2Example
t = simtform2d([0 -3 1; 3 0 2; 0 0 1]); t.Scale % 3Differences from MATLAB: the 1e-10 tolerance of the similarity check is MatRust's choice. 3-D and single-precision objects are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.