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

Workaround for floating point errors #3

Open
SevenSpheres opened this issue Aug 13, 2020 · 0 comments
Open

Workaround for floating point errors #3

SevenSpheres opened this issue Aug 13, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@SevenSpheres
Copy link
Owner

SevenSpheres commented Aug 13, 2020

Generating a large number of stars, in a small radius, at a large distance, can cause multiple stars to be in the same place due to floating point errors. Example:

The workaround would be to determine the scale of the error from the distance (1 ly per 2^24 ly), make a list of all the xyz coordinates, and for each star check the distance from every coordinate and make sure it's more than the error.

@SevenSpheres SevenSpheres added the enhancement New feature or request label Aug 13, 2020
@SevenSpheres SevenSpheres mentioned this issue Aug 13, 2020
6 tasks
@SevenSpheres SevenSpheres mentioned this issue Aug 26, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant