Skip to main content

Module transform

Module transform 

Source
Expand description

Transform — local 2D affine transform built from translate / scale / rotate / pivot / skew.

Composition order matches Pixi: M = T(position) · S(scale) · R(rotation) · K(skew) · T(-pivot)

That is: move the pivot to the origin, skew, rotate, scale, then move the pivot to its target position in parent space.

Structs§

Transform
Local 2D affine transform.

Functions§

compose
Compose a parent world transform with a local transform → child world transform.