Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

cosine interpolation

def cosineInterpolate(y1, y2, x):
   xv = (1 - cos(x * 3.1415927)) / 2
   return y1 + (y2 - y1) * xv
Source by paulbourke.net #
 
PREVIOUS NEXT
Tagged: #cosine #interpolation
ADD COMMENT
Topic
Name
3+7 =