You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
233 B
13 lines
233 B
import {tpmt} from "./math.js";
|
|
|
|
export function expIn(t) {
|
|
return tpmt(1 - +t);
|
|
}
|
|
|
|
export function expOut(t) {
|
|
return 1 - tpmt(t);
|
|
}
|
|
|
|
export function expInOut(t) {
|
|
return ((t *= 2) <= 1 ? tpmt(1 - t) : 2 - tpmt(t - 1)) / 2;
|
|
}
|
|
|