%% Resize Shape by Scale Factor
% Create a shape consisting of a curve and a right angle U-bend.

shape1 = curve;
shape2 = ubendRightAngle(Length=[5 18 5]*1e-3,ReferencePoint=[0 -5]*1e-3);
shapeSum = shape1+shape2;

% Display the shape.

show(shapeSum)

% Specify a scale factor, then resize the shape. Display the result.

s = 1.5*1e-3;
shapeTrans = scale(shapeSum,s);
show(shapeTrans)

% Copyright 2021 The MathWorks, Inc.