/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/d3-ease/src/sin.js
14 строк
253 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
var pi = Math.PI, halfPi = pi / 2; export function sinIn(t) { return (+t === 1) ? 1 : 1 - Math.cos(t * halfPi); } export function sinOut(t) { return Math.sin(t * halfPi); } export function sinInOut(t) { return (1 - Math.cos(pi * t)) / 2; }