%% Translate Shape in XY Plane
% 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 translation vector, then translate the shape in the X-Y plane. Display the result.

t = [9 3 0]*1e-3;
shapeTrans = translate(shapeSum,t);
show(shapeTrans)

% Copyright 2021 The MathWorks, Inc.