HOME

TheInfoList



OR:

In
plane geometry Euclidean geometry is a mathematical system attributed to ancient Greek mathematician Euclid, which he described in his textbook on geometry: the '' Elements''. Euclid's approach consists in assuming a small set of intuitively appealing axioms ...
, a shear mapping is a
linear map In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that ...
that displaces each point in a fixed direction, by an amount proportional to its signed distance from the
line Line most often refers to: * Line (geometry), object with zero thickness and curvature that stretches to infinity * Telephone line, a single-user circuit on a telephone communication system Line, lines, The Line, or LINE may also refer to: Art ...
that is
parallel Parallel is a geometric term of location which may refer to: Computing * Parallel algorithm * Parallel computing * Parallel metaheuristic * Parallel (software), a UNIX utility for running programs in parallel * Parallel Sysplex, a cluster o ...
to that direction and goes through the origin. This type of mapping is also called shear transformation, transvection, or just shearing. An example is the mapping that takes any point with
coordinates In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine the position of the points or other geometric elements on a manifold such as Euclidean space. The order of the coordinates is sig ...
(x,y) to the point (x + 2y,y). In this case, the displacement is horizontal by a factor of 2 where the fixed line is the x-axis, and the signed distance is the y coordinate. Note that points on opposite sides of the reference line are displaced in opposite directions. Shear mappings must not be confused with
rotation Rotation, or spin, is the circular movement of an object around a '' central axis''. A two-dimensional rotating object has only one possible central axis and can rotate in either a clockwise or counterclockwise direction. A three-dimensional ...
s. Applying a shear map to a set of points of the plane will change all
angle In Euclidean geometry, an angle is the figure formed by two rays, called the '' sides'' of the angle, sharing a common endpoint, called the ''vertex'' of the angle. Angles formed by two rays lie in the plane that contains the rays. Angles ...
s between them (except straight angles), and the length of any
line segment In geometry, a line segment is a part of a straight line that is bounded by two distinct end points, and contains every point on the line that is between its endpoints. The length of a line segment is given by the Euclidean distance between i ...
that is not parallel to the direction of displacement. Therefore, it will usually distort the shape of a geometric figure, for example turning squares into
parallelogram In Euclidean geometry, a parallelogram is a simple (non- self-intersecting) quadrilateral with two pairs of parallel sides. The opposite or facing sides of a parallelogram are of equal length and the opposite angles of a parallelogram are of eq ...
s, and
circle A circle is a shape consisting of all points in a plane that are at a given distance from a given point, the centre. Equivalently, it is the curve traced out by a point that moves in a plane so that its distance from a given point is cons ...
s into
ellipse In mathematics, an ellipse is a plane curve surrounding two focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special type of ellipse in ...
s. However a shearing does preserve the
area Area is the quantity that expresses the extent of a region on the plane or on a curved surface. The area of a plane region or ''plane area'' refers to the area of a shape or planar lamina, while '' surface area'' refers to the area of an op ...
of geometric figures and the alignment and relative distances of
collinear In geometry, collinearity of a set of points is the property of their lying on a single line. A set of points with this property is said to be collinear (sometimes spelled as colinear). In greater generality, the term has been used for aligned o ...
points. A shear mapping is the main difference between the upright and slanted (or italic) styles of letters. The same definition is used in three-dimensional geometry, except that the distance is measured from a fixed plane. A three-dimensional shearing transformation preserves the volume of solid figures, but changes areas of plane figures (except those that are parallel to the displacement). This transformation is used to describe
laminar flow In fluid dynamics, laminar flow is characterized by fluid particles following smooth paths in layers, with each layer moving smoothly past the adjacent layers with little or no mixing. At low velocities, the fluid tends to flow without lateral mi ...
of a fluid between plates, one moving in a plane above and parallel to the first. In the general n-dimensional Cartesian space \mathbb^n, the distance is measured from a fixed
hyperplane In geometry, a hyperplane is a subspace whose dimension is one less than that of its '' ambient space''. For example, if a space is 3-dimensional then its hyperplanes are the 2-dimensional planes, while if the space is 2-dimensional, its hyper ...
parallel to the direction of displacement. This geometric transformation is a
linear transformation In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that pre ...
of \mathbb^n that preserves the n-dimensional measure (hypervolume) of any set.


Definition


Horizontal and vertical shear of the plane

In the plane \mathbb^2 = \mathbb\times\mathbb, a horizontal shear (or shear parallel to the ''x'' axis) is a function that takes a generic point with coordinates (x,y) to the point (x + m y,y); where m is a fixed parameter, called the shear factor. The effect of this mapping is to displace every point horizontally by an amount proportionally to its y coordinate. Any point above the x-axis is displaced to the right (increasing x) if m > 0, and to the left if m < 0. Points below the x-axis move in the opposite direction, while points on the axis stay fixed. Straight lines parallel to the x-axis remain where they are, while all other lines are turned (by various angles) about the point where they cross the x-axis. Vertical lines, in particular, become
oblique Oblique may refer to: * an alternative name for the character usually called a slash (punctuation) ( / ) *Oblique angle, in geometry *Oblique triangle, in geometry * Oblique lattice, in geometry * Oblique leaf base, a characteristic shape of the b ...
lines with
slope In mathematics, the slope or gradient of a line is a number that describes both the ''direction'' and the ''steepness'' of the line. Slope is often denoted by the letter ''m''; there is no clear answer to the question why the letter ''m'' is use ...
1/m. Therefore, the shear factor m is the
cotangent In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in a ...
of the shear angle \varphi between the former verticals and the x-axis. (In the example on the right the square is tilted by 30°, so the shear angle is 60°.) If the coordinates of a point are written as a
column vector In linear algebra, a column vector with m elements is an m \times 1 matrix consisting of a single column of m entries, for example, \boldsymbol = \begin x_1 \\ x_2 \\ \vdots \\ x_m \end. Similarly, a row vector is a 1 \times n matrix for some n, c ...
(a 2×1
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** '' The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchi ...
), the shear mapping can be written as
multiplication Multiplication (often denoted by the Multiplication sign, cross symbol , by the mid-line #Notation and terminology, dot operator , by juxtaposition, or, on computers, by an asterisk ) is one of the four Elementary arithmetic, elementary Op ...
by a 2×2 matrix: : \beginx^\prime \\y^\prime \end = \beginx + m y \\y \end = \begin1 & m\\0 & 1\end \beginx \\y \end. A vertical shear (or shear parallel to the y-axis) of lines is similar, except that the roles of x and y are swapped. It corresponds to multiplying the coordinate vector by the
transposed matrix In linear algebra, the transpose of a matrix is an operator which flips a matrix over its diagonal; that is, it switches the row and column indices of the matrix by producing another matrix, often denoted by (among other notations). The t ...
: : \beginx^\prime \\y^\prime \end = \beginx \\ m x + y \end = \begin1 & 0\\m & 1\end \beginx \\y \end. The vertical shear displaces points to the right of the y-axis up or down, depending on the sign of m. It leaves vertical lines invariant, but tilts all other lines about the point where they meet the y-axis. Horizontal lines, in particular, get tilted by the shear angle \varphi to become lines with slope m.


General shear mappings

For a
vector space In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called ''scalars''. Scalars are often real numbers, but can ...
''V'' and subspace ''W'', a shear fixing ''W'' translates all vectors in a direction parallel to ''W''. To be more precise, if ''V'' is the
direct sum The direct sum is an operation between structures in abstract algebra, a branch of mathematics. It is defined differently, but analogously, for different kinds of structures. To see how the direct sum is used in abstract algebra, consider a mor ...
of ''W'' and ''W′'', and we write vectors as :''v'' = ''w'' + ''w′'' correspondingly, the typical shear ''L'' fixing ''W'' is :''L''(''v'') = (''Lw'' + ''Lw′'') = (''w'' + ''Mw′'') + ''w′'', where ''M'' is a linear mapping from ''W′'' into ''W''. Therefore in
block matrix In mathematics, a block matrix or a partitioned matrix is a matrix that is '' interpreted'' as having been broken into sections called blocks or submatrices. Intuitively, a matrix interpreted as a block matrix can be visualized as the original mat ...
terms ''L'' can be represented as :\begin I & M \\ 0 & I \end.


Applications

The following applications of shear mapping were noted by
William Kingdon Clifford William Kingdon Clifford (4 May 18453 March 1879) was an English mathematician and philosopher. Building on the work of Hermann Grassmann, he introduced what is now termed geometric algebra, a special case of the Clifford algebra named in hi ...
: :"A succession of shears will enable us to reduce any figure bounded by straight lines to a triangle of equal area." :"... we may shear any triangle into a right-angled triangle, and this will not alter its area. Thus the area of any triangle is half the area of the rectangle on the same base and with height equal to the perpendicular on the base from the opposite angle." The area-preserving property of a shear mapping can be used for results involving area. For instance, the
Pythagorean theorem In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposit ...
has been illustrated with shear mapping as well as the related
geometric mean theorem The right triangle altitude theorem or geometric mean theorem is a result in elementary geometry that describes a relation between the altitude on the hypotenuse in a right triangle and the two line segments it creates on the hypotenuse. It states ...
. An algorithm due to Alan W. Paeth uses a sequence of three shear mappings (horizontal, vertical, then horizontal again) to rotate a
digital image A digital image is an image composed of picture elements, also known as ''pixels'', each with '' finite'', '' discrete quantities'' of numeric representation for its intensity or gray level that is an output from its two-dimensional functions ...
by an arbitrary angle. The algorithm is very simple to implement, and very efficient, since each step processes only one column or one row of
pixel In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a raster image, or the smallest point in an all points addressable display device. In most digital display devices, pixels are the ...
s at a time.Alan Paeth (1986)
''A Fast Algorithm for General Raster Rotation''.
Proceedings of Graphics Interface '86, pages 77–81.
In
typography Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed. The arrangement of type involves selecting typefaces, point sizes, line lengths, line-spacing ( leading), an ...
, normal text transformed by a shear mapping results in
oblique type Oblique type is a form of type that slants slightly to the right, used for the same purposes as italic type. Unlike italic type, however, it does not use different glyph shapes; it uses the same glyphs as roman type, except slanted. Oblique and it ...
. In pre-Einsteinian
Galilean relativity Galilean invariance or Galilean relativity states that the laws of motion are the same in all inertial frames of reference. Galileo Galilei first described this principle in 1632 in his '' Dialogue Concerning the Two Chief World Systems'' using t ...
, transformations between
frames of reference In physics and astronomy, a frame of reference (or reference frame) is an abstract coordinate system whose origin, orientation, and scale are specified by a set of reference points― geometric points whose position is identified both mathe ...
are shear mappings called
Galilean transformations In physics, a Galilean transformation is used to transform between the coordinates of two reference frames which differ only by constant relative motion within the constructs of Newtonian physics. These transformations together with spatial rotati ...
. These are also sometimes seen when describing moving reference frames relative to a "preferred" frame, sometimes referred to as
absolute time and space Absolute space and time is a concept in physics and philosophy about the properties of the universe. In physics, absolute space and time may be a preferred frame. Before Newton A version of the concept of absolute space (in the sense of a preferr ...
.


See also

*
Shear matrix In mathematics, a shear matrix or transvection is an elementary matrix that represents the addition of a multiple of one row or column to another. Such a matrix may be derived by taking the identity matrix and replacing one of the zero elements wit ...
*
Transformation matrix In linear algebra, linear transformations can be represented by matrices. If T is a linear transformation mapping \mathbb^n to \mathbb^m and \mathbf x is a column vector with n entries, then T( \mathbf x ) = A \mathbf x for some m \times n matrix ...


References

{{reflist Functions and mappings Linear algebra