FUNCTION REFERENCE

affine2d

2-D affine transformation object, postmultiply convention (value class).

2-D affine transformation object, postmultiply convention (value class).

Syntax

tform = affine2d

Syntax

tform = affine2d(T)

T is 3-by-3 with last column [0; 0; 1], finite and invertible; points map as rows: [x y 1] = [u v 1]*T, the same as affinetform2d(T.'). Properties: T (settable) and Dimensionality (read-only). Methods: transformPointsForward, transformPointsInverse, invert, outputLimits, isRigid, isSimilarity, isTranslation. MATLAB recommends affinetform2d for new code.

Example

t = affine2d([1 0 0; 0 1 0; 5 7 1]); [x, y] = transformPointsForward(t, 1, 1)   % 6, 8

Example

a = affinetform2d(affine2d([2 0 0; 1 1 0; 0 0 1])); a.A   % [2 1 0; 0 1 0; 0 0 1]

Differences from MATLAB: 3-D (affine3d) 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.