Const
Sine ease-in, 1 − cos(πt/2).
1 − cos(πt/2)
The t === 1 guard is required: Math.cos(Math.PI / 2) is 6.12e-17 rather than 0, so the raw form returns 0.9999999999999999.
t === 1
Math.cos(Math.PI / 2)
6.12e-17
0.9999999999999999
Sine ease-in,
1 − cos(πt/2).The
t === 1guard is required:Math.cos(Math.PI / 2)is6.12e-17rather than 0, so the raw form returns0.9999999999999999.