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 |
| 0 1 0 |
| 0 0 1 |
Shear in the Y direction:
| 1 0 0 |
| Sy 1 0 |
| 0 0 1 |
3D Transformation Matrices:
Translation:
| ___ _______ _________ ___ ____ _____ _______ _________ __________ ________ _____.
_______ ______ __________ ___ ___ _________ _________ _________.
_______ _________ _____ _______ ____ ____.
__________ ____ ______ ___ ___ ________ ______ _______ ____ ________ __________.
____ ____ ______ __________ ________ _________.
________ ______ _________ ___ ______ __________.
_______ _______ _________ ___ ___ __________ _____ ________ _______.
___ ________ ___ _______ _______ __________ ________ _______ _____ ________.
________ ____ ___ ___ __________ ____ ______ ________ _____ __________ _____.
_______ _______ _____ ________ ______ _______.
_________ ___ ________ ________ _________.
________ ______ ______ ________ ___.
____ __________ ________ _____ ___ _______ _____ ______.
_____ __________ _______ ________ ________ ______ _________ _______ __________ _______.
__________ _________ __________ ___ _________.
_______ _________ ___ ________ _________ ___ _________ _________ _______ _____.
_____ ____ ___ ____ ___ ____ __________ ____ ______ ______ ____.
_______ __________ _________ _________ _______ ___ ________ _________ ________ _______ __________ ________.
___ ___ ___ ______ __________.
____ __________ _________ ___ _________ _________ ________ ______ _____ ____ _______.
________ ________ ________ __________ _________ ______ _______ _________ ____ __________ _____ ___.
______ ___ ____ ____ ______ ________ _________ _____ _________.
________ ________ ________ __________ __________ __________ _____ ______ _____ __________ __________.
________ _____ _______ ________ ___.
_______ _____ ____ _____ __________ ______.
_________ _______ ____ ____ ______.
_________ ___ _______ ________ ________ ___ ________ _______ ________.
_________ ________ _________ ____ _______ _______ ______ ____ ______ _____ _______.
__________ _______ ________ __________ ___ _________ _________ ________.
______ ___ ___ ________ ________ _____ _________ ____ ________ __________ __________.
__________ ___ ______ _____ _________ _____ _______ ______ ________ _______ ____.
______ _________ ______ __________ _________ _______ ____ _______ ______ _______ __________ ________.
__________ ______ __________ _____ ________.
__________ ________ _________ __________ ___ _______ ______ ______ ____.
___ __________ ________ _______ ____ ____ _______ __________ _______.
_____ ______ _____ _____ ____ _____ ___ _______ ___ _________.
___ ______ _________ __________ __________.
__________ _____ _________ ______ ___ ______ _________ __________ _________ _________.
___ ____ _________ ______ __________ _____ _______ ______ ______ __________ _________ _____.
__________ ________ _________ ________ ____ ______.
______ ______ _______ ________ __________ ______ _______ _________ ________ _____ ___ _____.
_________ ________ _____ ______ _______ ______ _______ ___ ________ ___ __________.
______ ___ _________ _______ ____ ____ ______.
____ ________ _______ __________ ______ _________ __________ ______.
________ ___ _________ ____ _____.
________ ____ ___ ________ ____ ____ ______ ___ _____ ___ ___ ______.
________ __________ ________ ___ ___ __________ _____ __________ _______ ___ _______.
___ _________ ________ ________ _________ _____ ___ _______ _______ ________.
______ ________ ________ _______ ___ __________ _______ _____ __________ _______.
_________ ________ _____ ___ _________ ______ ___ _______ _____ ___ _____.
_________ ____ ____ _______ ____ ______ _____ ______ ___ _______ _________ _________.
______ __________ ______ ________ ________ ___ ___.
___ _______ ___ ________ ____ ______.
____ _______ _______ _____ ____ _________.
________ _______ _______ ___ _________ ______ _______ ___ _____ ___.
__________ _____ ______ ______ __________ ___ __________ _________ ______ _______.
________ ________ ___ _______ _______ ____.
__________ __________ _____ ______ _______ _______ __________ ___.
______ ______ ____ ________ _________ __________ _____.
________ ________ ________ _______ _______ ______ _____.
_____ ____ ____ ______ _________ _____ _________.
__________ _____ _____ __________ ___ __________ _________.
______ __________ ___ _______ __________.
______ _________ ___ _____ _______.
__________ _______ ___ ____ _______ _______ _________ ______ _______ _____ ____ _______.
_____ ___ _______ _________ _______ ____ __________ _________ _______ _______ _____.
____ __________ ___ _________ ________ _________ _____ ____ ________ _____.
________ ____ ____ ___ ___ ___ ______ ____ _________ ________ _____.
_______ _______ ________ ___ __________ _______ ________ _____ __________.
____ ______ ____ ___ _________ _______ __________ _________ ________.
________ ________.
Get Full Answer on WhatsApp