refactor rotation functions to seprate functions to compute a rotation matrix and a function to rotate points with a given rotation matrix
Merge pull request #371 from norihiro-w/refactor-rotate

Refactoring point rotation functions