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

Fix AABB::from_points which relied on implementation details of AABB::new_empty #171

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

adamreichold
Copy link
Member

  • I agree to follow the project's code of conduct.
  • I added an entry to rstar/CHANGELOG.md if knowledge of this change could be valuable to users.

This method does not just need an empty AABB, but actually requires that the lower/upper corners use max/min values of the point coordinates.

This change therefore open-codes this to keep these invariants and the code that relies on them close together.

A changelog entry should not be necessary as we luckily did not yet release the regression.

Closes #170

…:new_empty

This method does not just need an empty AABB, but actually requires that
the lower/upper corners use max/min values of the point coordinates.

This change therefore open-codes this to keep these invariants and the
code that relies on them close together.
@adamreichold adamreichold added this pull request to the merge queue Jun 28, 2024
Merged via the queue into master with commit 7634435 Jun 28, 2024
6 checks passed
@adamreichold adamreichold deleted the fix-from-points branch November 3, 2024 19:10
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.

Initial AABB can cause from_points/others to be wrong
2 participants