% scale - Scales a geometry
% 
% SCALE(geom,s) scales the geometry geom by the factor s with respect to 
% the origin. Here, s can be a scalar or a vector. Use a scalar for
% uniform scaling in all directions. Use a vector of 2 or 3 elements to 
% specify different scaling factors along the x-, y-, and, for a 3-D
% geometry, z-axis.
% 
% SCALE(geom,s,refpoint) scales the geometry with respect to the reference 
% point, refpoint. 
% 
% SCALE modifies a geometry, but it does not modify a mesh. After modifying 
% a geometry, re-generate the mesh to ensure proper mesh association with 
% the modified geometry.
% 
% Example 1: Scale a 2-D geometry by a factor of 2.
%     model = createpde();
%     geom = importGeometry(model,'PlateHolePlanar.stl');
%     scale(geom,2);
%     pdegplot(geom)
%
% Example 2: Scale a 3-D geometry by factors of 2, 3, and 4 along the x-, 
% y-, and z- axis, respectively.
%     geom = multicuboid(1,1,1);     
%     scale(geom,[2 3 4]);
%     pdegplot(geom)  
%
% Example 3: Scale a 3-D geometry by a factor of 4 using co-ordinates (1,1,1)  
% as a reference point.
%     geom = multicuboid(1,1,1);
%     scale(geom,2,[1 1 1]);
%     pdegplot(geom) 
%
% See also pde.DiscreteGeometry, pde.DiscreteGeometry/rotate,
% pde.DiscreteGeometry/translate

%  Copyright 2019-2020 The MathWorks, Inc.
%  Built-in function.
