DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+1 =
Submit