well im no help with the rotation but...
the cos of an angle can be represented by x
and sin .... y
like you already said.
z is just z. there is no trig funtion that can be sub. for it
im not ezaclty sure what your trying to do but like someone else already said, you might want to check out spherical.. but maybe even cyclendrical might be worth checking out. maybe even polar?