Function meanRotation