/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/scene/container/utils/updateWorldTransform.ts
30 строк
775 B
Zyie
chore: documentation overhaul with typedoc (#11423)
19 май 2025, 11:44
Не верифицирован
19 май 2025, 11:44
34926f0
Код
Авторство
О чём код?
import type { Matrix } from '../../../maths/matrix/Matrix'; /** * @param local * @param parent * @param world * @deprecated * @internal */ export function updateWorldTransform(local: Matrix, parent: Matrix, world: Matrix): void { const lta = local.a; const ltb = local.b; const ltc = local.c; const ltd = local.d; const lttx = local.tx; const ltty = local.ty; const pta = parent.a; const ptb = parent.b; const ptc = parent.c; const ptd = parent.d; world.a = (lta * pta) + (ltb * ptc); world.b = (lta * ptb) + (ltb * ptd); world.c = (ltc * pta) + (ltd * ptc); world.d = (ltc * ptb) + (ltd * ptd); world.tx = (lttx * pta) + (ltty * ptc) + parent.tx; world.ty = (lttx * ptb) + (ltty * ptd) + parent.ty; }