FUNCTION REFERENCE

outputLimits

Bounding box of a transformed rectangle.

Bounding box of a transformed rectangle.

Syntax

[xLimitsOut, yLimitsOut] = outputLimits(tform, xLimitsIn, yLimitsIn)

The rectangle xLimitsIn by yLimitsIn ([min max] each) is mapped by tform; an affine map sends it to a parallelogram, whose extremes are the mapped corners. The outputs are 1-by-2 rows [min max].

Example

[xl, yl] = outputLimits(rigidtform2d(90, [0 0]), [0 2], [0 1])   % [-1 0], [0 2]

Differences from MATLAB: 3-D limits 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.