mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
12 lines
210 B
JavaScript
12 lines
210 B
JavaScript
export function cubicIn(t) {
|
|
return t * t * t;
|
|
}
|
|
|
|
export function cubicOut(t) {
|
|
return --t * t * t + 1;
|
|
}
|
|
|
|
export function cubicInOut(t) {
|
|
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
|
}
|