Rotation With Quaternion

fix #9510 
Could you please change the variables to multiple line? It is hard to read and review.