Scaling (geometry)
Encyclopedia : S : SC : SCA : Scaling (geometry)
In Euclidean geometry, uniform scaling is a linear transformation that enlarges or diminishes objects; the scale factor is the same in all directions; it is also called a homothety. The result of uniform scaling is similar (in the geometric sense) to the original.
More general is scaling with a separate scale factor for each axis direction; a special case is directional scaling (in one direction). Shapes may change; e.g. a rectangle may change into a rectangle of a different shape, but also in a parallelogram (the angles between lines parallel to the axes are preserved, but not all angles).
A scaling can be represented by a scaling matrix. To scale an object by a vector v = (vx, vy, vz), each point p = (px, py, pz) would need to be multiplied with this scaling matrix:
- [ S_v = \beginv_x & 0 & 0 \\0 & v_y & 0 \\0 & 0 & v_z \\\end]
- [S_vp =\beginv_x & 0 & 0 \\0 & v_y & 0 \\0 & 0 & v_z \\\end\beginp_x \\ p_y \\ p_z \end=\beginv_xp_x \\ v_yp_y \\ v_zp_z\end]
A scaling in the most general sense is any affine transformation with a diagonalizable matrix. It includes the case that the three directions of scaling are not perpendicular. It includes also the case that one or more scale factors are equal to zero (projection), and the case of one or more negative scale factors. The latter corresponds to a combination of scaling proper and a kind of reflection: along lines in a particular direction we take the reflection in the point of intersection with a plane that need not be perpendicular; therefore it is more general than ordinary reflection in the plane.
Often, it is more useful to use homogeneous coordinates, since translation cannot be accomplished with a 3-by-3 matrix. To scale an object by a vector v = (vx, vy, vz), each homogeneous vector p = (px, py, pz, 1) would need to be multiplied with this scaling matrix:
- [ S_v = \beginv_x & 0 & 0 & 0 \\0 & v_y & 0 & 0 \\0 & 0 & v_z & 0 \\0 & 0 & 0 & 1 \end]
- [S_vp =\beginv_x & 0 & 0 & 0 \\0 & v_y & 0 & 0 \\0 & 0 & v_z & 0 \\0 & 0 & 0 & 1 \end\beginp_x \\ p_y \\ p_z \\ 1 \end=\beginv_xp_x \\ v_yp_y \\ v_zp_z \\ 1 \end]
Since the last component of a homogeneous coordinate can be viewed as the denominator of the other three components, a scaling by a common factor s can be accomplished by using this scaling matrix:
- [ S_v = \begin1 & 0 & 0 & 0 \\0 & 1 & 0 & 0 \\0 & 0 & 1 & 0 \\0 & 0 & 0 & \frac \end]
- [S_vp =\begin1 & 0 & 0 & 0 \\0 & 1 & 0 & 0 \\0 & 0 & 1 & 0 \\0 & 0 & 0 & \frac \end\beginp_x \\ p_y \\ p_z \\ 1 \end=\beginp_x \\ p_y \\ p_z \\ \frac \end]
- [\beginsp_x \\ sp_y \\ sp_z \\ 1 \end]
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
