grad for rotate matrix. apply camera control