void set_z_rotation(double z_rot) { if(z_rot >= 0 && z_rot <= 360) { matrix[0][0] = matrix[0][0] * cos(z_rot) + matrix[0][0] * sin(z_rot); matrix[0][1] = matrix[0][1] * cos(z_rot) + matrix[0][1] * sin(z_rot); matrix[0][2] = matrix[0][2] * cos(z_rot) + matrix[0][2] * sin(z_rot); matrix[1][0] = matrix[1][0] * -sin(z_rot) + matrix[1][0] * cos(z_rot); matrix[1][1] = matrix[1][1] * -sin(z_rot) + matrix[1][1] * cos(z_rot); matrix[1][2] = matrix[1][2] * -sin(z_rot) + matrix[1][2] * cos(z_rot); } }
where the matrix contains row vectors.?