Garry's Mod Wiki

math.ease.InSine

  number math.ease.InSine( number fraction )

Description

Eases in using math.sin.

Arguments

1 number fraction
Fraction of the progress to ease, from 0 to 1

Returns

1 number
"Eased" Value, from 0 to 1

Example

Calculates the easing of three situations

print(math.ease.InSine(0.1)) print(math.ease.InSine(0.2)) print(math.ease.InSine(0.3))
Output: 0.01231... 0.04894... 0.10899...