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

Add exp() function to vector classes #134

Merged
merged 1 commit into from Aug 17, 2021

Conversation

MoritzBrueckner
Copy link
Contributor

Required by armory3d/armory#2303 for Vec3, but I implemented it for the other vector classes as well for consistency.

I'm not sure whether the w component should be included for Vec4 (like in glsl), but Iron's vectors seem to not use it that much (which makes sense in many cases) so I left it out for now. Also, should there be log/pow/sqrt functions in a similar manner? Or maybe even a functional-programming-style map() for applying arbitrary functions to all components?

@luboslenco
Copy link
Member

Thanks! Can add more when it's needed, but the #36 still planned for the future.

@MoritzBrueckner MoritzBrueckner deleted the vector-exp branch August 17, 2021 15:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants