Added cosine interpolated versions of mix and map.