(t: number)
| 147 | |
| 148 | /** Weich anfangen, weich aufhoeren. */ |
| 149 | export function easeInOutCubic(t: number): number { |
| 150 | const clamped = t <= 0 ? 0 : t >= 1 ? 1 : t; |
| 151 | return clamped < 0.5 |
| 152 | ? 4 * clamped * clamped * clamped |
| 153 | : 1 - Math.pow(-2 * clamped + 2, 3) / 2; |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Auf welche Seite dieser Akteur ausweicht. |
no outgoing calls
no test coverage detected