FUNCTION REFERENCE

affinetform2d.isTranslation

Test whether a 2-D affine transformation is a pure translation.

Test whether a 2-D affine transformation is a pure translation.

Syntax

tf = isTranslation(tform)

Syntax

tf = tform.isTranslation()

Returns true when the linear 2-by-2 part equals the identity matrix within tolerance.

Example

t = affinetform2d([1 0 5; 0 1 -2; 0 0 1]); t.isTranslation()   % true

Differences from MATLAB: Uses a 1e-10 tolerance on the 2-by-2 matrix structure check.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.