gives the matrix corresponding to scaling by a factor si along each coordinate axis.
gives the matrix corresponding to scaling by a factor s along the direction of the vector v.
Examplesopen allclose all
Basic Examples (2)
Scaling by factors a, b, and c along the , , and directions:
Scaling by a factor s along the direction of the vector :
Scaling factors can be negative or zero:
Transformation applied to a 2D shape:
Transformation applied to a 3D shape:
Create an ellipsoid:
Display projection of a 3D graphic:
Transform a grayscale image by scaling with a factor of :
A pure rescaling of a 3D image:
Properties & Relations (4)
Neat Examples (1)
Repeated scalings in different directions: