More convenience matrix functions, adding generic rotation function