🌈 搜索
📅  最后修改于: 2022-03-11 14:45:14.149000             🧑  作者: Mango
def cosineInterpolate(y1, y2, x): xv = (1 - cos(x * 3.1415927)) / 2 return y1 + (y2 - y1) * xv