-
Notifications
You must be signed in to change notification settings - Fork 49
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 additions, some leaner implementations and one breaking change(!) #35
Conversation
…alue, not a new vector. Cross-product in 2D is not well-defined but it is changed to the 2D version stated at https://mathworld.wolfram.com/CrossProduct.html . Add Sinus and Cosine for angle between vectors (vec2 vec3 float64 float32) Changed implementation for Angle (vec2 vec3 float32 float64) to utilize Cosine implementation (with math.Acos). Changed implementation for left and right winding (vec2 float32 float64) Duplicated test file for quaternion (float32 float64)
Thanks, a little bit more to review :-) |
Do you have any thoughts or considerations? |
Oh sorry, forgot to review…
Christian Andersson ***@***.***> schrieb am Mi. 27. Apr. 2022
um 17:55:
Do you have any thoughts or considerations?
Can I be of assistance?
—
Reply to this email directly, view it on GitHub
<#35 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEWX45CII46OKRJ5UAAPP3VHFPPLANCNFSM5SQUFXUQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
***@***.***
+43 650 58 33055
Skype: ungerik
|
ping... :-P |
|
Yes, indeed it does. I do not remember them failing when I ran the tests previously. I found out that IntelliJ Idea run the tests with success if you run them in debug mode (but fail in normal run mode). (!?) The tests fail because there is a slight difference in the last decimal between the "expected" and "actual" rotated result vector. The same error occur in the master branch.
|
Added a fix for the tests. See the diff in commit above if it is appropriate. |
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!
Breaking change(!) cross function vec2 (float32 float64) now return a scalar value, not a new vector.
Cross-product in 2D is not well-defined but it is changed to the 2D version stated at https://mathworld.wolfram.com/CrossProduct.html .
Add Sinus and Cosine for angle between vectors (vec2 vec3 float64 float32)
Changed implementation for Angle (vec2 vec3 float32 float64) to utilize Cosine implementation (with math.Acos).
Changed implementation for left and right winding (vec2 float32 float64)
Duplicated test file for quaternion (float32 float64)