reduce the redundant sin/cos computation in rpy2rotmat