Transformations in 3-D are

Translation

Scaling

Rotation about x - axis

" " y - axis

" " z - axis

and can be performed by 4 x 4 matrix multiplication (See Van Dam and Foley Chapter 7 )

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.