add w.Rotate
fix #533 change the function name