Identity
1000010000100001
m0000m0000m00001
For non-uniform scaling, use different values on the diagonal.
Translate (by (tx,ty,tz))
100001000010txtytz1
Rotation Matrices
Rotate about x-axis
Rx(θ)=10000cosθsinθ00−sinθcosθ00001
Rotate about y-axis
Ry(θ)=cosθ0−sinθ00100sinθ0cosθ00001
Rotate about z-axis
Rz(θ)=cosθsinθ00−sinθcosθ0000100001
Mnemonic
The axis being rotated about has 1 on the diagonal and 0 in that row/column. The other entries form a 2D rotation matrix.
Non-Commutativity
3D rotations are non-commutative:
- Rx(90°)⋅Rz(90°)=Rz(90°)⋅Rx(90°)

Summary
- Translation uses the fourth column
- Rotation matrices are orthogonal (determinant = 1)
- 3D rotations are non-commutative