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

#5 - Adding Angle() function. #8

Merged
merged 3 commits into from
May 5, 2020

Conversation

SolarLune
Copy link
Contributor

@SolarLune SolarLune commented May 4, 2020

Also fixing Vector.Cross(), because the function's formula was incorrect (double-checked using https://www.vcalc.com/wiki/vCalc/V3+-+V+x+U and https://www.omnicalculator.com/math/cross-product).
Resolves #5.

Also fixing Vector.Cross(), because the function's formula was incorrect (double-checked using https://www.vcalc.com/wiki/vCalc/V3+-+V+x+U and https://www.omnicalculator.com/math/cross-product).
Copy link
Owner

@quartercastle quartercastle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @SolarLune, its much appreciated!

I just have a couple of comments and would like if you could create a benchmark test for the method as well.

vector.go Show resolved Hide resolved
vector.go Outdated Show resolved Hide resolved
vector.go Outdated Show resolved Hide resolved
Not really useful until Vector.Rotate() takes arbitrary Vectors.
Fixing tests, adding benchmark.
@SolarLune
Copy link
Contributor Author

OK, I added your requests into the PR.

@quartercastle quartercastle merged commit 821ee30 into quartercastle:master May 5, 2020
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.

Angle() function
2 participants