Skip to content

Home > @esengine/ecs-framework-monorepo > Matrix3 > decompose

Matrix3.decompose() method

分解变换矩阵为平移、旋转、缩放分量

Signature:

typescript
decompose(): {
        translation: Vector2;
        rotation: number;
        scale: Vector2;
    };

Returns:

{ translation: Vector2; rotation: number; scale: Vector2; }

{translation, rotation, scale}

基于 MIT 许可证发布