FUNCTION REFERENCE

isSimilarity

True if a 2-D affine transformation is a similarity.

True if a 2-D affine transformation is a similarity.

Syntax

tf = isSimilarity(tform)

For affine2d and affinetform2d: rotation, isotropic scaling, reflection and translation are allowed (the 2-by-2 part is a positive multiple of an orthogonal matrix), within a relative 1e-10.

Example

isSimilarity(affinetform2d([2 0 0; 0 -2 0; 0 0 1]))   % true

Differences from MATLAB: the 1e-10 tolerance is MatRust's choice.

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