rotation matrix rules. There are any references about rotation matrix rules in here. you can look below.