math.EaseInOut
From Garry's Mod
Contents |
Description
Calculates the progress of a value fraction, taking in to account given easing fractions
Arguments
number progress
Fraction of the progress to ease
Arguments
number easeIn
Fraction of how much easing to begin with
Arguments
number easeOut
Fraction of how much easing to end with
Returns
Eased Value
Examples
Example
Calculates the easing of three situations
print(math.EaseInOut(0.1, 0.1, 0.1)) print(math.EaseInOut(0.2, 0.1, 0.1)) print(math.EaseInOut(0.3, 0.1, 0.1))
Output:
0.055555...
0.166666...
0.277777...