rotation drawing methods and mouse position detection