implement transform.rotate