![]() ![]() The Y-Shear can be represented in matrix from as − The Y-Shear preserves the X coordinates and changes the Y coordinates which causes the horizontal lines to transform into lines which slopes up or down as shown in the following figure. The transformation matrix for X-Shear can be represented as − The X-Shear preserves the Y coordinate and changes are made to X coordinates, which causes the vertical lines to tilt right or left as shown in below figure. However in both the cases only one coordinate changes its coordinates and other preserves its values. One shifts X coordinates values and other shifts Y coordinate values. ![]() There are two shear transformations X-Shear and Y-Shear. ShearĪ transformation that slants the shape of an object is called the shear transformation. The following figures show reflections with respect to X and Y axes, and about the origin respectively. In reflection transformation, the size of the object does not change. ![]() In other words, we can say that it is a rotation operation with 180°. Reflection is the mirror image of original object. If we provide values greater than 1, then we can increase the size of the object. If we provide values less than 1 to the scaling factor S, then we can reduce the size of the object. The scaling process is shown in the following figure. The above equations can also be represented using the column vectors. The pair (t x, t y) is called the translation vector or shift vector. You can translate a point in 2D by adding translation coordinate (t x, t y) to the original coordinate (X, Y) to get the new coordinate (X’, Y’).įrom the above figure, you can write that − TranslationĪ translation moves an object to a different position on the screen. Any Cartesian point P(X, Y) can be converted to homogenous coordinates by P’ (X h, Y h, h). In this system, we can represent all the transformation equations in matrix multiplication. In this way, we can represent the point by 3 numbers instead of 2 numbers, which is called Homogenous Coordinate system. To convert a 2×2 matrix to 3×3 matrix, we have to add an extra dummy coordinate W. To shorten this process, we have to use 3×3 transformation matrix instead of 2×2 transformation matrix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |