Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Shear mapping

From Wikipedia, the free encyclopedia
Type of geometric transformation
This article includes a list ofgeneral references, butit lacks sufficient correspondinginline citations. Please help toimprove this article byintroducing more precise citations.(April 2025) (Learn how and when to remove this message)
Mesh Shear 5/4
Horizontal shearing of the plane, transforming the blue into the red shape. The black dot is the origin.
Influid dynamics a shear mapping depicts fluid flow between parallel plates in relative motion.

Inplane geometry, ashear mapping is anaffine transformation that displaces each point in a fixed direction by an amount proportional to itssigned distance from a givenlineparallel to that direction.[1]

This type of mapping is also calledshear transformation,transvection, or justshearing. The transformations can be applied with ashear matrix ortransvection, anelementary matrix that represents theaddition of a multiple of one row or column to another. Such amatrix may be derived by taking theidentity matrix and replacing one of the zero elements with a non-zero value.

An example is thelinear map that takes any point withcoordinates(x,y){\displaystyle (x,y)} to the point(x+2y,y){\displaystyle (x+2y,y)}. In this case, the displacement is horizontal by a factor of 2 where the fixed line is thex-axis, and the signed distance is they-coordinate. Note that points on opposite sides of the reference line are displaced in opposite directions.

Shear mappings must not be confused withrotations. Applying a shear map to a set of points of the plane will change allangles between them (exceptstraight angles), and the length of anyline segment that is not parallel to the direction of displacement. Therefore, it will usually distort the shape of a geometric figure, for example turning squares intoparallelograms, andcircles intoellipses. However a shearing does preserve thearea of geometric figures and the alignment and relative distances ofcollinear points. For fonts that do not implement true-italics, a shear mapping is the main difference between the upright andslanted (or italic) styles ofletters.

The same definition is used inthree-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 describelaminar flow of a fluid between plates, one moving in a plane above and parallel to the first.

In the generaln-dimensionalCartesian spaceRn,{\displaystyle \mathbb {R} ^{n},} the distance is measured from a fixedhyperplane parallel to the direction of displacement. This geometric transformation is alinear transformation ofRn{\displaystyle \mathbb {R} ^{n}} that preserves then-dimensionalmeasure (hypervolume) of any set.

Definition

[edit]

Horizontal and vertical shear of the plane

[edit]
icon
This sectionneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources in this section. Unsourced material may be challenged and removed.(April 2025) (Learn how and when to remove this message)
Horizontal shear of a square into parallelograms with factorscot(60)=tan(30)0.58{\displaystyle \cot(60^{\circ })=\tan(30^{\circ })\approx 0.58} andcot(45)=tan(45)=1{\displaystyle \cot(45^{\circ })=\tan(45^{\circ })=1}

In the planeR2=R×R{\displaystyle \mathbb {R} ^{2}=\mathbb {R} \times \mathbb {R} }, ahorizontal shear (orshear parallel to thex-axis) is a function that takes a generic point with coordinates(x,y){\displaystyle (x,y)} to the point(x+my,y){\displaystyle (x+my,y)}; wherem is a fixed parameter, called theshear factor.

The effect of this mapping is to displace every point horizontally by an amount proportionally to itsy-coordinate. Any point above thex-axis is displaced to the right (increasingx) ifm > 0, and to the left ifm < 0. Points below thex-axis move in the opposite direction, while points on the axis stay fixed.

Straight lines parallel to thex-axis remain where they are, while all other lines are turned (by various angles) about the point where they cross thex-axis. Vertical lines, in particular, becomeoblique lines withslope1m.{\displaystyle {\tfrac {1}{m}}.} Therefore, the shear factorm is thecotangent of theshear angleφ{\displaystyle \varphi } between the former verticals and thex-axis.[citation needed] 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 acolumn vector (a 2×1matrix), the shear mapping can be written asmultiplication by a 2×2 matrix:

(xy)=(x+myy)=(1m01)(xy).{\displaystyle {\begin{pmatrix}x^{\prime }\\y^{\prime }\end{pmatrix}}={\begin{pmatrix}x+my\\y\end{pmatrix}}={\begin{pmatrix}1&m\\0&1\end{pmatrix}}{\begin{pmatrix}x\\y\end{pmatrix}}.}

Avertical shear (or shear parallel to they-axis) of lines is similar, except that the roles ofx andy are swapped. It corresponds to multiplying the coordinate vector by thetransposed matrix:

(xy)=(xmx+y)=(10m1)(xy).{\displaystyle {\begin{pmatrix}x^{\prime }\\y^{\prime }\end{pmatrix}}={\begin{pmatrix}x\\mx+y\end{pmatrix}}={\begin{pmatrix}1&0\\m&1\end{pmatrix}}{\begin{pmatrix}x\\y\end{pmatrix}}.}

The vertical shear displaces points to the right of they-axis up or down, depending on the sign ofm. It leaves vertical lines invariant, but tilts all other lines about the point where they meet they-axis. Horizontal lines, in particular, get tilted by the shear angleφ{\displaystyle \varphi } to become lines with slopem.

Composition

[edit]

Two or more shear transformations can be combined.

If two shear matrices are(1λ01){\textstyle {\begin{pmatrix}1&\lambda \\0&1\end{pmatrix}}} and(10μ1){\textstyle {\begin{pmatrix}1&0\\\mu &1\end{pmatrix}}}

then their composition matrix is(1λ01)(10μ1)=(1+λμλμ1),{\displaystyle {\begin{pmatrix}1&\lambda \\0&1\end{pmatrix}}{\begin{pmatrix}1&0\\\mu &1\end{pmatrix}}={\begin{pmatrix}1+\lambda \mu &\lambda \\\mu &1\end{pmatrix}},}which also has determinant 1, so that area is preserved.

In particular, ifλ=μ{\displaystyle \lambda =\mu }, we have

(1+λ2λλ1),{\displaystyle {\begin{pmatrix}1+\lambda ^{2}&\lambda \\\lambda &1\end{pmatrix}},}

which is apositive definite matrix.

Higher dimensions

[edit]

A typical shear matrix is of the formS=(100λ001000001000001000001).{\displaystyle S={\begin{pmatrix}1&0&0&\lambda &0\\0&1&0&0&0\\0&0&1&0&0\\0&0&0&1&0\\0&0&0&0&1\end{pmatrix}}.}

This matrix shears parallel to thex axis in the direction of the fourth dimension of the underlying vector space.

A shear parallel to thex axis results inx=x+λy{\displaystyle x'=x+\lambda y} andy=y{\displaystyle y'=y}. In matrix form:(xy)=(1λ01)(xy).{\displaystyle {\begin{pmatrix}x'\\y'\end{pmatrix}}={\begin{pmatrix}1&\lambda \\0&1\end{pmatrix}}{\begin{pmatrix}x\\y\end{pmatrix}}.}

Similarly, a shear parallel to they axis hasx=x{\displaystyle x'=x} andy=y+λx{\displaystyle y'=y+\lambda x}. In matrix form:(xy)=(10λ1)(xy).{\displaystyle {\begin{pmatrix}x'\\y'\end{pmatrix}}={\begin{pmatrix}1&0\\\lambda &1\end{pmatrix}}{\begin{pmatrix}x\\y\end{pmatrix}}.}

In 3D space this matrix shears the YZ plane into the diagonal plane passing through these 3 points:(0,0,0){\displaystyle (0,0,0)}(λ,1,0){\displaystyle (\lambda ,1,0)}(μ,0,1){\displaystyle (\mu ,0,1)}S=(1λμ010001).{\displaystyle S={\begin{pmatrix}1&\lambda &\mu \\0&1&0\\0&0&1\end{pmatrix}}.}

Thedeterminant will always be 1, as no matter where the shear element is placed, it will be a member of a skew-diagonal that also contains zero elements (as all skew-diagonals have length at least two) hence its product will remain zero and will not contribute to the determinant. Thus every shear matrix has aninverse, and the inverse is simply a shear matrix with the shear element negated, representing a shear transformation in the opposite direction. In fact, this is part of an easily derived more general result: ifS is a shear matrix with shear elementλ, thenSn is a shear matrix whose shear element is simplynλ. Hence, raising a shear matrix to a powern multiplies itsshear factor byn.

Properties

[edit]

IfS is ann ×n shear matrix, then:

  • S hasrankn and therefore isinvertible
  • 1 is the onlyeigenvalue ofS, sodetS = 1 andtrS =n
  • theeigenspace ofS (associated with the eigenvalue 1) hasn − 1 dimensions.
  • S isdefective
  • S is asymmetric
  • S may be made into ablock matrix by at most 1 column interchange and 1 row interchange operation
  • thearea,volume, or any higher order interior capacity of apolytope is invariant under the shear transformation of the polytope's vertices.

General shear mappings

[edit]

For avector spaceV andsubspaceW, a shear fixingW translates all vectors in a direction parallel toW.

To be more precise, ifV is thedirect sum ofW andW′, and we write vectors as

v=w+w{\displaystyle v=w+w'}

correspondingly, the typical shearL fixingW is

L(v)=(Lw+Lw)=(w+Mw)+w,{\displaystyle L(v)=(Lw+Lw')=(w+Mw')+w',}

whereM is a linear mapping fromW′ intoW. Therefore inblock matrix termsL can be represented as

(IM0I).{\displaystyle {\begin{pmatrix}I&M\\0&I\end{pmatrix}}.}


Applications

[edit]

The following applications of shear mapping were noted byWilliam Kingdon Clifford:

"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."[2]

The area-preserving property of a shear mapping can be used for results involving area. For instance, thePythagorean theorem has been illustrated with shear mapping[3] as well as the relatedgeometric mean theorem.

Shear matrices are often used incomputer graphics.[4][5][6]

An algorithm due toAlan W. Paeth usesa sequence of three shear mappings (horizontal, vertical, then horizontal again) to rotate adigital image by an arbitrary angle. The algorithm is very simple to implement, and very efficient, since each step processes only one column or one row ofpixels at a time.[7]

Intypography, normal text transformed by a shear mapping results inoblique type.[citation needed]

In pre-EinsteinianGalilean relativity, transformations betweenframes of reference are shear mappings calledGalilean transformations. These are also sometimes seen when describing moving reference frames relative to a "preferred" frame, sometimes referred to asabsolute time and space.[citation needed]

Etymology

[edit]

The term 'shear' originates fromphysics, used to describe acutting-like deformation in which parallel layers of material 'slide past each other'. More formally,shear force refers to unalignedforces acting on one part of abody in a specific direction, and another part of the body in the opposite direction.

See also

[edit]

References

[edit]
Wikimedia Commons has media related toShear (geometry).
The WikibookAbstract Algebra has a page on the topic of:Shear mapping
  1. ^Weisstein, Eric W."Shear".MathWorld − A Wolfram Web Resource.Definition according to Weisstein.
  2. ^Clifford, William Kingdon (1885).Common Sense and the Exact Sciences. p. 113.
  3. ^Hohenwarter, M."Pythagorean theorem by shear mapping".Made usingGeoGebra. Drag the sliders to observe the shears.
  4. ^Foley et al. (1991, pp. 207–208, 216–217)
  5. ^Schneider, Philip J.; Eberly, David H. (2002).Geometric Tools for Computer Graphics. Elsevier. pp. 154–157.ISBN 978-0-08-047802-9.
  6. ^Desai, Apueva A. (22 October 2008).Computer Graphics. PHI Learning Pvt. pp. 162–164.ISBN 978-81-203-3524-0.
  7. ^Paeth, A.W. (1986)."A Fast Algorithm for General Raster Rotation"(PDF).Vision Interface (VI1986). pp. 077–081.

Bibliography

[edit]
Vector graphics
2D graphics
2.5D
3D graphics
Concepts
Graphics software
Algorithms
Matrix classes
Explicitly constrained entries
Constant
Conditions oneigenvalues or eigenvectors
Satisfying conditions onproducts orinverses
With specific applications
Used instatistics
Used ingraph theory
Used in science and engineering
Related terms
Retrieved from "https://en.wikipedia.org/w/index.php?title=Shear_mapping&oldid=1333540518"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp