-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added a couple more vectormath operations #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! I have added comments suggesting a few changes to be made.
This last commit should fix all the aforementioned issues |
4bbb934
to
2666584
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rotate Y should also be counter clockwise. Last change and otherwise looks good and I can merge it.
Third times the charm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes! I'll merge these in.
I added a couple more vector math functions.
multiply([vector], [vector])
multiplies 2 vectors together.rotateX([vector], [angle])
rotates the vector around the x axis.rotateY([vector], [angle])
rotates the vector around the y axis.rotateZ([vector], [angle])
rotates the vector around the z axis.I wrote tests and ran beachball already. Let me know if you have any concerns.