A practical algorithm for smooth interpolation between different angular positions