Write Translational, Rotational, Scaling, Reflection, Shear Transformation matrix for 2D and 3D homogeneous system. Determine the final coordinates of a polygon ABCD, A (1, 4), B (-4, 1) C (-1, -1), D(2, -2) when it is scaled up to twice its size with respect to an arbitrary point P(1, 1).
Transformation matrices are used in computer graphics to transform or change the position, orientation, or size of objects in a 2D or 3D space. Here are the transformation matrices for some common transformations in both 2D and 3D homogeneous systems:
2D Transformation Matrices:
Translation:
| 1 0 tx |
| 0 1 ty |
| 0 0 1 |
Rotation:
| cos(theta) -sin(theta) 0 |
| sin(theta) cos(theta) 0 |
| 0 0 1 |
Scaling:
| Sx 0 0 |
| 0 Sy 0 |
| 0 0 1 |
Reflection:
Reflection across the X-axis:
| 1 0 0 |
| 0 -1 0 |
| 0 0 1 |
Reflection across the Y-axis:
| -1 0 0 |
| 0 1 0 |
| 0 0 1 |
Shear:
Shear in the X direction:
| 1 Sx 0 |
| ______ ___ ________ _____ ______ _____ _______ _______ ______ __________ ___.
_________ _____ _______ ___ __________ _________ _________ ____ ________.
_____ __________ _____ ____ _____ ______ ___.
____ ______ _________ _____ ____ _________ _____ __________ _________ ______.
____ ____ _____ ___ __________ ________ ______ ____ _______ ________ _______.
_________ __________ ________ _______ _____ ________ ______ ___ _____ ______ ___ ________.
_________ ____ ________ ________ _________ ____ ____ ____ _________ _______ ___.
_____ ______ ________ _____ ________ _____ _________ _______ ________ _____ _____ ________.
__________ _________ ______ ______ ____ ______ _________ _____ ____.
_________ ______ _________ ______ _______.
_________ _______ ________ ______ __________ _________ _______.
___ ___ __________ ___ ___ ______ _______ _______ ______ _______.
______ _____ ___ _____ _____ _____ __________ ________ __________.
___ _____ _____ _________ ____ ________ ___ ____ ______.
____ _______ ________ _________ _______ _________.
______ _____ ____ __________ _________ _______ _______ ______ __________ ___ ______ __________.
__________ _____ _________ ______ ___ ___ _________ _______ _______ ______ ___ ______.
_______ ________ ____ _________ ____ ____ _________ _____ _____.
___ _________ __________ _________ _____ ___ _________ _____ ________ ______ _______ ________.
______ _____ _____ ___ _________.
_____ ________ __________ ___ _______ ________ __________ ______.
___ __________ ______ ___ _________ _____.
______ _______ _______ _______ ______ __________ ___ _____ ___ _______ ___.
____ ______ ____ __________ _____ ______ ___ ________ _______ ___.
__________ _________ ________ ________ _____ ___ __________ ____.
______ __________ __________ _____ _________ ________ __________ _____ _______ __________ _________.
_____ _______ ______ _______ ________ ___ ___ _____ __________ _______ ___.
__________ __________ ____ ______ _________ _________ __________ _______ _______ ________ __________ ______.
_____ ________ _____ _______ _______ ________.
______ _______ ____ ______ _______.
__________ __________ ________ ________ ______ _________.
_____ ___ _____ _____ ______.
______ _____ ___ ___ _____ ____ ___.
________ ___ ___ ____ ____ _______ _____ _____ ______ ___ _________.
____ ____ _______ ________ ____ _______ ________ ____.
______ __________ ______ _________ ________ ____ ________ _______ _________ ______ _______ __________.
______ __________ ________ ____ ____ ___.
______ ________ __________ _______ _____ ________ _______ _____ _____ ____ _____ ____.
___ ___ ____ _________ _____ _______ ______ _____.
_________ _________ __________ _________ ______ ____ _________.
_______ ______ ___ ____ __________ _________ ________ ____ ___.
_____ ____ _________ ______ ___ _____ ______.
___ __________ _______ ____ __________ _______ ________.
______ ______ ________ ______ ____ ____.
________ __________ _________ ___ ___ _________ __________ _______.
____ __________ ____ ________ ______ ____ ___ ______.
__________ ______ _______ __________ ____ ________ _____.
___ _____ __________ _____ ______ _____ ___ _______ _________ ___.
________ ____ _____ _______ ____ _____ _________ _________ __________ _______ ___.
___ _________ __________ _____ ____ __________.
__________ ______ _______ ________ ________.
______ ___ _________ ___ ____ __________.
_________ __________ _________ _____ _______ _________ _________ _________ __________ ____.
_____ ____ _______ _____ __________ _________ ___ ______ __________ ______.
_________ ____ _____ ___ ________ ________ ___.
_________ _____ ________ __________ ___ _________ _______ __________ ________ _________ _______.
_______ __________ _______ ______ _____ ______ ___.
_____ ___ _________ ___ ____ _________.
__________ _____ ________ _________ _________ __________ __________ ________ _____ ____ __________.
_____ ___ __________ _________ _________ __________ ________.
______ _____ ______ _____ _____ __________ ______ ______ ___.
_________ ________ ____ _____ ___ ______ ____ ____ ______ ______.
___ ________ _____ _____ _________ _____ ___ _________ _________ ________.
__________ ___ ____ ____ _____ ________ ___ _____ _________ _____ _____.
______ _________ _________ _____ ___ ____ _________ ____ _______ _____ ______.
________ ____ _________ ______ ______ ___ ____.
_______ ___ _____ ______ ___ __________ _____ ___ _____ ______.
__________ ___ ________ _________ ____ ________ _____ _____ _______ ______.
_____ _______ ____ ________ __________ ________.
_____ _____ ___ ________ ________ _____.
_____ _______ ________ __________ _______ ______ _______ _______ ___ ______ ___.
_____ ______ ___ ___ _______ _________ ____.
_________ _____ ______ ________ __________ ______ _________ __________ ________ ________.
_____ _____ ___ ___ _________.
____ _______ _________ _______ ______ ____.
Get Full Answer on WhatsApp