RegionResize
RegionResize[reg,l]
resize the region reg to have the first side length l preserving side length ratios.
RegionResize[reg,{lmax}]
resize into a box with maximum side length lmax preserving side length ratios.
RegionResize[reg,{l1,l2,…}]
resize into a box with side lengths li.
RegionResize[reg,{{x1,min,x1,max},{x2,min,x2,max},…}]
resize into a box with corners {x1,min,x2,min,…} and {x1,max,x2,max,…}.
Details
- RegionResize is used to resize a region in ways that either preserve the shape or distort the shape.
- The side lengths li can be any of:
-
Automatic automatically determined side length All the original side length Scaled[s] fraction s of the original side length num num side length {num} at most num side length - RegionResize[reg,l] is equivalent to RegionResize[reg,{l,Automatic,…}].
- RegionResize[reg,{l}] is equivalent to RegionResize[reg,{{l},{l},…}].
Examples
open allclose allSee Also
RegionBounds BoundedRegionQ RescalingTransform Rescale BoxRatios
Related Guides
Introduced in 2016
(11.0)