FUNCTION REFERENCE

rigidtform2d

2-D rigid transformation object: rotation then translation (value class).

2-D rigid transformation object: rotation then translation (value class).

Syntax

tform = rigidtform2d

Syntax

tform = rigidtform2d(t)

Syntax

tform = rigidtform2d(r, t)

Syntax

tform = rigidtform2d(R, t)

Syntax

tform = rigidtform2d(A)

Syntax

tform = rigidtform2d(tformIn)

r is a counterclockwise angle in degrees, R = [cosd(r) -sind(r); sind(r) cosd(r)], t = [tx ty], and A = [R t'; 0 0 1]. Properties: Dimensionality (read-only), RotationAngle (kept in [-180, 180)), Translation, R and A; setting any of the last four updates the others. R, A and tformIn must describe a rotation (orthonormal, determinant 1) within 1e-10, otherwise the constructor reports an error.

Example

t = rigidtform2d(90, [1 2]); t.A   % [0 -1 1; 1 0 2; 0 0 1]

Example

t = rigidtform2d(30, [10 20.5]); t.RotationAngle   % 30

Differences from MATLAB: the 1e-10 tolerance of the rotation 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.