-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for matrix decompose and compose #136
Comments
These function have been implemented. |
@stefnotch Hello, thank you very much for your work! I saw |
@gonnavis See https://glmatrix.net/docs/module-mat4.html#.fromRotationTranslationScale and other matrix functions. To compose them, you multiply them. The only thing that I think isn't in there is |
Thanks a lot! |
Based on CSS3 transform spec:
http://www.w3.org/TR/css3-transforms/#decomposing-a-3d-matrix
It also describes decomposing 2d matrix.
While we are at it, maybe support composing matrices given its component parts (translation, rotation, skew, perspective, etc).
Chromium also has an implementation in C++:
https://github.com/ChromiumWebApps/chromium/blob/master/ui/gfx/transform_util.cc
The text was updated successfully, but these errors were encountered: