add Trotate function

targeted rotate