-
Notifications
You must be signed in to change notification settings - Fork 724
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
Some new functions #119
Some new functions #119
Conversation
mat4.fromRotationTranslationScaleOrigin - creates a matrix with the specified translation, rotation and scale around a given origin.
Did a small jsperf test for the origin-based matrix constructor: http://jsperf.com/glmatrix-matrix-variant-test/3 |
If you ask me stuff like sqlerp, hermite and bezier interpolation is a bit out of scope for a vector/matrix library. It adds bloat, maintenence burden to gl-matrix and introduces version woes (for example: a major semver change in vec3.hermite even though the rest of the API is unchanged). There's lots of spline/curve/etc interpolations on npm thanks to @thibauts @mikolalysenko @hughsk and others. More variety is always a good thing if you're willing to publish them to npm! 👍 https://www.npmjs.com/package/bezier |
Is this included in the docs anywhere? I was looking for a helper like this but didn't see it in http://glmatrix.net/docs/2.2.0/symbols/mat4.html. Wondering what other helpers I might be missing. |
I am not sure how useful the interpolation functions are for other people.
mat4.fromRotationTranslationScale sure is useful, at least for me.