yes that way does use Sin and Cosine, only inside the matrices
the rotation matrix has Sin and cosine parts in it
anyway doing the maths the hard way would be so slow it would be slideshow-like