You rotate single point using rotation matrix.
http://en.wikipedia.org/wiki/Rotation_matrix
so it end up using matrix multiply eqations.
v' = R * v
Where v is point as vector in Cartesian coordinates, R is rotation matrix and v’ is new point. You have to apply this multiplication for each point.
0
solved How can I find out the vertex coordinates of a rotating cube?