Shearing deals with changing the shape and size of the 2D object along x-axis and y-axis. It is similar to sliding the layers in one direction to change the shape of the 2D object.It is an ideal technique to change the shape of an existing object in a two dimensional plane. In a two dimensional plane, the object size can be changed along X direction as well as Y direction.
In x shear, the y co-ordinates remain the same but the x co-ordinates changes. If P(x, y) is the point then the new points will be P’(x’, y’) given as –
In y shear, the x co-ordinates remain the same but the y co-ordinates changes. If P(x, y) is the point then the new points will be P’(x’, y’) given as –
x-y Shear :
In x-y shear, both the x and y co-ordinates changes. If P(x, y) is the point then the new points will be P’(x’, y’) given as –
Given a triangle with points (1, 1), (0, 0) and (1, 0).
Find out the new coordinates of the object along x-axis, y-axis, xy-axis.
(Applying shear parameter 4 on X-axis and 1 on Y-axis.).
Given, Old corner coordinates of the triangle = A (1, 1), B(0, 0), C(1, 0) Shearing parameter along X-axis (Shx) = 4 Shearing parameter along Y-axis (Shy) = 1 Along x-axis: A'=(1+4*1, 1)=(5, 1) B'=(0+4*0, 0)=(0, 0) C'=(1+4*0, 0)=(1, 0) Along y-axis: A''=(1, 1+1*1)=(1, 2) B''=(0, 0+1*0)=(0, 0) C''=(1, 0+1*1)=(1, 1) Along xy-axis: A'''=(1+4*1, 1+1*1)=(5, 2) B'''=(0+4*0, 0+1*0)=(0, 0) C'''=(1+4*0, 0+1*1)=(1, 1)
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Remainder Fact For Number 9
- Delimiters in LaTeX
- Constructions in LaTeX
- Miscellaneous symbols in LaTeX
- Directional symbols in LaTeX
- Accents in LaTeX
- Inequalities in LaTeX
- Linear Congruence method for generating Pseudo Random Numbers
- Multiplicative Congruence method for generating Pseudo Random Numbers
- Additive Congruence method for generating Pseudo Random Numbers
- Multivariate Optimization and its Types - Data Science
- Equality and Inference symbols in LaTeX
- Binary operation symbols in LaTeX
- Mathematical operator symbols in LaTeX
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.