90
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Each sequential value is retrieved according to the first value and the sequence number. | Each sequential value is retrieved according to the first value and the sequence number. | ||
To use EvolvingNatFloat, add the using statement for '''Vintagestory.API.MathTools'''. | To use EvolvingNatFloat, add the using statement for '''Vintagestory.API.MathTools'''.<br><br> | ||
'''''Important note''': The value of sequence should always satisfy '''sequence < 0''''' | |||
== Example in code == | == Example in code == | ||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
Line 88: | Line 89: | ||
For every other function, the '''initialValue = 0'''<br> | For every other function, the '''initialValue = 0'''<br> | ||
[[File: | [[File:Txtpositiveclampedsinus.png|150px]] | ||
[[File: | [[File:Txtcosinus.png|150px]] | ||
[[File: | [[File:Txtidentical.png|150px]] | ||
[[File: | [[File:Txtinverselinear.png|150px]]<br><br> | ||
[[File: | [[File:Txtlinear.png|150px]] | ||
[[File: | [[File:Txtlinearincrease.png|150px]] | ||
[[File: | [[File:TxtlinearnullifyFirstValMinusFive.png|150px]] | ||
[[File: | [[File:Txtlinearreduce.png|150px]]<br><br> | ||
[[File: | [[File:Txtquadratic.png|150px]] | ||
[[File: | [[File:Txtroot.png|150px]] | ||
[[File: | [[File:Txtsinus.png|150px]] | ||
[[File: | [[File:Txtsmoothstep.png|150px]] |
edits