Add trigonometric interpolation from redditor viscence