Reference · Rockets, variants, parts and the fit check
easeInOutfunction
Ease-in-out: slow at both ends, so a camera move does not start or stop with a jerk.
Import it
import { easeInOut } from "@johnmorrisdotca/uchusen-rockets";
Definition
function easeInOut(t: number): number
Parameters
| Name | Type | Description |
|---|---|---|
t | number | How far through the move, from 0 to 1 (values outside are held at the ends). |
Returns
number
The eased progress, from 0 to 1.
Examples
import { easeInOut } from "@johnmorrisdotca/uchusen-rockets";
console.log(easeInOut(0.5)); // 0.50.5What it prints (run when this page was built)