Skip to content

Fix for angle misclassification due to low floating point precision#9

Open
nagarabh wants to merge 2 commits intofedassa:masterfrom
nagarabh:master
Open

Fix for angle misclassification due to low floating point precision#9
nagarabh wants to merge 2 commits intofedassa:masterfrom
nagarabh:master

Conversation

@nagarabh
Copy link
Copy Markdown

Hope that resolves the issue for good.

Regards,
Abhishek

Conversion to floating point makes the values imprecise and is not required especially when the remaining code is in double precision.
The condition "inclination > DEG_90_TO_RAD" needs to be checked upto a precision of 1e-15 (https://en.wikipedia.org/wiki/IEEE_754#/media/File:IEEE754.svg) otherwise assertions on lines 712 or 724 may fail leading to memory access violation error on lines 713/725.
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.

1 participant