Skip to content
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

.str() #12

Open
rreusser opened this issue Feb 5, 2018 · 1 comment
Open

.str() #12

rreusser opened this issue Feb 5, 2018 · 1 comment

Comments

@rreusser
Copy link
Member

rreusser commented Feb 5, 2018

gl-matrix converts things to strings. See: http://glmatrix.net/docs/vec2.js.html#line468. I'm not in love with the function, but maybe makes sense to add and be done with it.

@rreusser
Copy link
Member Author

rreusser commented Feb 5, 2018

Specifically, I like numpy's approach of making the output valid input, which would suggest making require('gl-vec2) an alias for vec2.fromValues so that the output vec2(1.0, 2.0) would also be valid input. That might be too fancy though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant