FUNCTION REFERENCE

transformPointsForward

Apply a 2-D geometric transformation to points.

Apply a 2-D geometric transformation to points.

Syntax

[x, y] = transformPointsForward(tform, u, v)

Syntax

X = transformPointsForward(tform, U)

Works for affinetform2d, rigidtform2d, simtform2d, transltform2d and affine2d. u and v are same-size single or double arrays (the outputs keep that size and class); U is n-by-2 with one point [u v] per row. Also callable as tform.transformPointsForward(u, v).

Example

[x, y] = transformPointsForward(rigidtform2d(90, [0 0]), 1, 0)   % 0, 1

Example

transformPointsForward(transltform2d(1, 2), [0 0; 1 1])   % [1 2; 2 3]

Differences from MATLAB: 3-D points and nonlinear transformations are not supported yet.

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