Skip to content

combined TRS decompose for mat4 #401

@randName

Description

@randName

(unrelated to #305)

mat4.fromRotationTranslationScale exists but not the other way round (i.e. Matrix4.decompose from Three.js)

The getX functions from #204 are excellent, but if both rotation and scale are desired there is a wasted call to getScaling (position is independent)

I can do a PR but the only thing I am unsure of is the function signature, since I can't find an example of multiple outs on a function (besides quat.getAxisAngle which sets the vec3 and returns the angle). I am also not sure if there was a concious decison to exclude it because of this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions