Transformations in 3-D are
Translation
Scaling
Rotation about x - axis
" " y - axis
" " z - axis
Total Transformation = [ ]. [ ]. [ ] ......
= T1 . T2 . T3 .
i.e if rotate, then scale, then rotate => R1 . S . R2
[newx, newy, newz, 1 ] = [x,y,z,] . [Trans matrix]
Can use the following to convert between out of page positive z to into page negative z.