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:
| 1 0 0 tx |
| 0 1 0 ty |
| 0 0 1 tz |
| 0 0 0 1 |
Rotation:
Rotation about X-axis:
|
________ _______ __________ ________ ______ ________.
______ _______ ________ __________ _________ _______ _________ _____.
________ ____ ________ ___ ____ ___ ____.
________ ___ __________ __________ __________ ______ ________.
________ _________ __________ _________ __________ ___ _________ _____ ____.
______ _______ _________ ___ ___ _____ ______ ___.
__________ __________ ______ ___ _________ ________.
_____ ___ _____ _______ _______ _____ _________ _____ ________ ______.
____ ___ ______ ____ _______ ______ ______ ___ ____ ______.
______ __________ _________ ______ ______ __________ ________ ____ _________ ______ _______ ______.
____ ___ _________ ____ _______ ____ ________ ___ ____ __________ ____ ____.
________ _____ ____ ___ ______ ______.
_____ _____ ________ ________ _________ _____ ____ ___ ________ _____ ________ ____.
____ _______ ____ ____ __________ ___ _________.
_________ ___ __________ _________ ______ _____.
________ ______ _________ __________ _____ ____ _____ _________ _____ ________ ____.
____ ____ ________ _________ ___ _______.
____ _____ ___ _____ _______ ___ ____ _________ ______.
______ ______ ______ ____ ________.
_________ ______ _____ _____ _________ ________.
__________ _____ _________ __________ __________.
__________ _______ _______ _________ ___ ________.
________ ___ ____ __________ _________ ______ _________ ________ _______ _______ ________ ___.
__________ ________ ___ ________ ________ ____ ________ __________ __________ ___ __________.
___ _________ _____ ______ ________ __________ ________ ________.
____ ______ ___ ______ ______ ______ _________ __________ ____ _______.
_________ ______ ____ ____ _________ ________ _______.
____ _______ _______ ________ _________ ______ ________ _______ __________.
________ _____ ______ ___ ________ ________ ________ ___ _____ _____.
__________ __________ ________ _________ ___ _____ ____ _____ ____ _______ _______.
______ ___ _______ _____ _______ ___ _____ _______ ________.
______ _______ ______ __________ _________ _____.
____ ____ _____ _____ _______ __________ ________ _____ __________ __________.
_______ _______ ________ _____ ______ ________ _____.
_________ ____ ________ ______ _____.
____ ____ ______ ____ ________ ______.
_____ _________ _______ _____ ______ _________.
_______ _____ __________ ___ _______ ________ _________ ____ ____.
______ _________ _______ __________ ______ _________ ______.
_________ ___ _____ ___ ____ ___ ___ ______.
____ _________ _______ _______ ___ ____ ___ ___ _______ _______ ______ _____.
_______ _____ _________ ______ __________ __________ __________ ______ __________ ____.
__________ __________ ________ _______ _________ ___ ____.
____ ________ _______ ______ _____ ___ ______ ___ _______ __________ ________ _____.
_______ _____ _____ ________ _________ _________ __________ ______ ______ ________ ______.
_________ ______ __________ ___ _________ _________.
______ ________ __________ __________ _________ __________.
_____ __________ ___ _________ ___ ________.
___ ______ _______ ____ _____ _______ ________ ___ ___ ________ __________.
_________ ___ ___ _________ ___ ________ _______ __________.
__________ _______ ____ _______ __________ __________ _____ ____ __________ ________.
______ __________ _______ ___ ______.
__________ ____ ______ _________ __________ ___ __________ ______ ____.
____ __________ ___ ___ __________ __________ ______ __________ _______ ______.
______ ___ ________ ____ _________ __________ ___ _____.
___ _________ ______ _______ ____ _________ _________ __________ ____.
______ __________ ________ _______ _____ ____ _____ ________ _____ ___.
_____ ______ _____ ______ _______ __________ __________ ____.
__________ _______ _______ __________ __________ _____ _______.
______ ______ _____ ____ ___ _________ _______ _____.
_________ _______ _______ __________ __________ _____ ______ ________.
___ ________ _____ ________ _________.
_____ ___ ____ __________ ______ _____ ____ _____ ________.
_________ ______ ______ _______ ___ ___ ___ ____.
__________ __________ _______ _______ __________ _____ _____ _____ ______ __________ _________ ______.
_____ ___ ______ ________ ________ _____.
___ ________ __________ __________ ____ ______ __________ _________ __________ ___ _____ __________.
______ ______ _______ _________ ________ _________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required