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