Updated atan2 for change of rotation matrix columns