rotate primitive.