(r: Ratio)
| 91 | const ORIGIN_CENTER: Vec2 = { x: 0.5, y: 0.5 }; |
| 92 | |
| 93 | const ratioToValue = (r: Ratio) => r[0] / r[1]; |
| 94 | const clamp = (n: number, min = 0, max = 1) => Math.max(min, Math.min(max, n)); |
| 95 | const easeInOutCubic = (t: number) => |
| 96 | t < 0.5 ? 4 * t * t * t : 1 - (-2 * t + 2) ** 3 / 2; |
no outgoing calls
no test coverage detected