Jump to content

Scaling (geometry)

From Wikipedia, the free encyclopedia
(Redirected fromScale factor)

Each iteration of theSierpinski trianglecontains triangles related to the next iteration by a scale factor of 1/2

Inaffine geometry,uniform scaling(orisotropicscaling[1]) is alinear transformationthat enlarges (increases) or shrinks (diminishes) objects by ascale factorthat is the same in all directions. The result of uniform scaling issimilar(in the geometric sense) to the original. A scale factor of 1 is normally allowed, so thatcongruentshapes are also classed as similar. Uniform scaling happens, for example, when enlarging or reducing aphotograph,or when creating ascale modelof a building, car, airplane, etc.

More general isscalingwith a separate scale factor for each axis direction.Non-uniform scaling(anisotropicscaling) is obtained when at least one of the scaling factors is different from the others; a special case isdirectional scalingorstretching(in one direction). Non-uniform scaling changes theshapeof the object; e.g. a square may change into a rectangle, or into a parallelogram if the sides of the square are not parallel to the scaling axes (the angles between lines parallel to the axes are preserved, but not all angles). It occurs, for example, when a faraway billboard is viewed from anoblique angle,or when the shadow of a flat object falls on a surface that is not parallel to it.

When the scale factor is larger than 1, (uniform or non-uniform) scaling is sometimes also calleddilationorenlargement.When the scale factor is a positive number smaller than 1, scaling is sometimes also calledcontractionorreduction.

In the most general sense, a scaling includes the case in which the directions of scaling are not perpendicular. It also includes the case in which one or more scale factors are equal to zero (projection), and the case of one or more negative scale factors (a directional scaling by -1 is equivalent to areflection).

Scaling is alinear transformation,and a special case ofhomothetic transformation(scaling about a point). In most cases, the homothetic transformations are non-linear transformations.

Uniform scaling

[edit]

Ascale factoris usually a decimal which scales, or multiplies, some quantity. In the equationy=Cx,Cis the scale factor forx.Cis also thecoefficientofx,and may be called theconstant of proportionalityofytox.For example, doubling distances corresponds to a scale factor of two for distance, while cutting a cake in half results in pieces with a scale factor for volume of one half. The basic equation for it is image over preimage.

In the field of measurements, the scale factor of an instrument is sometimes referred to as sensitivity. The ratio of any two corresponding lengths in two similar geometric figures is also called a scale.

Matrix representation

[edit]

A scaling can be represented by a scalingmatrix.To scale an object by avectorv= (vx,vy,vz), each pointp= (px,py,pz) would need to be multiplied with this scaling matrix:

As shown below, the multiplication will give the expected result:

Such a scaling changes thediameterof an object by a factor between the scale factors, theareaby a factor between the smallest and the largest product of two scale factors, and thevolumeby the product of all three.

The scaling is uniformif and only ifthe scaling factors are equal (vx= vy= vz). If all except one of the scale factors are equal to 1, we have directional scaling.

In the case wherevx= vy= vz= k,scaling increases the area of any surface by a factor ofk2and the volume of any solid object by a factor ofk3.

Scaling in arbitrary dimensions

[edit]

In-dimensional space,uniform scaling by a factoris accomplished byscalar multiplicationwith,that is, multiplying each coordinate of each point by.As a special case of linear transformation, it can be achieved also by multiplying each point (viewed as a column vector) with adiagonal matrixwhose entries on the diagonal are all equal to,namely.

Non-uniform scaling is accomplished by multiplication with anysymmetric matrix.Theeigenvaluesof the matrix are the scale factors, and the correspondingeigenvectorsare the axes along which each scale factor applies. A special case is a diagonal matrix, with arbitrary numbersalong the diagonal: the axes of scaling are then the coordinate axes, and the transformation scales along each axisby the factor.

In uniform scaling with a non-zero scale factor, all non-zero vectors retain their direction (as seen from the origin), or all have the direction reversed, depending on the sign of the scaling factor. In non-uniform scaling only the vectors that belong to aneigenspacewill retain their direction. A vector that is the sum of two or more non-zero vectors belonging to different eigenspaces will be tilted towards the eigenspace with largest eigenvalue.

Using homogeneous coordinates

[edit]

Inprojective geometry,often used incomputer graphics,points are represented usinghomogeneous coordinates.To scale an object by avectorv= (vx,vy,vz), each homogeneous coordinate vectorp= (px,py,pz,1) would need to be multiplied with thisprojective transformationmatrix:

As shown below, the multiplication will give the expected result:

Since the last component of a homogeneous coordinate can be viewed as the denominator of the other three components, a uniform scaling by a common factors(uniform scaling) can be accomplished by using this scaling matrix:

For each vectorp= (px,py,pz,1) we would have

which would be equivalent to

Function dilation and contraction

[edit]

Given a point,the dilation associates it with the pointthrough the equations

for.

Therefore, given a function,the equation of the dilated function is

Particular cases

[edit]

If,the transformation is horizontal; when,it is a dilation, when,it is a contraction.

If,the transformation is vertical; whenit is a dilation, when,it is a contraction.

Ifor,the transformation is asqueeze mapping.

See also

[edit]

Footnotes

[edit]
  1. ^Durand; Cutler."Transformations"(PowerPoint).Massachusetts Institute of Technology.Retrieved12 September2008.
[edit]