Add early item layout math

Currently this results in a diagonal line. Now these values just have
to be passed through a sine and cosine.