---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-webgl/functions/decomposePartAffine.md
---
# Function: decomposePartAffine()

> **decomposePartAffine**(`a`): [`SSDecomposedTransform`](../interfaces/SSDecomposedTransform.md)

Defined in: ssplayer-core/dist/index.d.ts:5344

Decompose a 2D part affine `[m00, m01, m10, m11, tx, ty]` into translation,
rotation and scale, assuming a translate*rotate*scale composition. Rotation is
taken from the X basis and each scale from its basis length, with `scaleY`
signed by the affine's determinant so a mirrored (negatively scaled) part
survives the round-trip. A sheared affine cannot be represented this way and
is approximated — prefer the raw [SSPartAffine](../type-aliases/SSPartAffine.md) when the shear must be
exact. A part's own **Skew** never produces that shear here: it is a
non-inheriting local-vertex deform the runtime keeps out of the world matrix,
so it does not reach a follower (matching SpriteStudio, where skew does not
propagate). A rotated part under a non-uniform parent scale still can.

## Parameters

### a

`ArrayLike`<`number`>

## Returns

[`SSDecomposedTransform`](../interfaces/SSDecomposedTransform.md)
