-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement plane_to_sphere
#186
Conversation
Recall that we did that in #183 following your suggestion. While working on this PR, I realized that there is significant precision loss (O(1 m)) when going from sphere to plane for large distances from origin. This precision loss is independent from the precision of the input. In other words, even when the input is 32-bit, doing the calculation and returning the output in 32-bit results in a precision loss compared to working with 64-bit for calculation and output. So, relative to #183, I changed my mind and decided to work in 64-bit regardless of input type. But this is a question of design: We can choose to be (a) type-consistent with the input (i.e. use |
By default in Python floating numbers are in We can add a note that round-trip of positions on the Earth are not exact if precision is decreased. But at the same time, this is almost always the case for any function. For example:
|
Co-authored-by: Philippe Miron <philippemiron@gmail.com>
Co-authored-by: Philippe Miron <philippemiron@gmail.com>
Thanks for the review. |
No description provided.