As a follow up to this question Why are $3D$ transformation matrices $4 \times 4$ instead of $3 \times 3$?
What is each formula for each field of the transformation matrix, if I want to construct it by hand?
Basically, I would like to do 6 degrees of freedom transformation where I would like to do translation in x,y,z and rotations in the 3 axes as well (But scaling or shearing).
Q1: How do I get each element in the transformation matrix? Q2: Given a transformation matrix, how do I re-construct each of the 6 degrees of freedom (translation in x,y,z and rotation in the 3 axes)?