add rotate direction
Merge pull request #2 from terryso/master

add rotate direction