1. fix compiler error in transform due to missing header file cmath
2. reorganize transform
3. enhance some coding syle in transform and quaternion