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 incorrect convex hull with -0.0 #3797

Merged
merged 7 commits into from
Feb 12, 2025
Merged

Conversation

crisiumnih
Copy link
Contributor

@crisiumnih crisiumnih commented Feb 4, 2025

Closes #3455.

  • Replaces -0.0 with 0.0 in sort!
  • Resolves incorrect convex hull results

Results -
hello

@schillic schillic changed the title Fixes incorrect convex hull in #3455 Fixes incorrect convex hull with -0.0 Feb 8, 2025
@schillic schillic changed the title Fixes incorrect convex hull with -0.0 Fix incorrect convex hull with -0.0 Feb 8, 2025
Copy link
Member

@schillic schillic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please also add

src/ConcreteOperations/convex_hull.jl Outdated Show resolved Hide resolved
src/ConcreteOperations/convex_hull.jl Outdated Show resolved Hide resolved
test/ConcreteOperations/convex_hull.jl Outdated Show resolved Hide resolved
src/ConcreteOperations/convex_hull.jl Outdated Show resolved Hide resolved
crisiumnih and others added 3 commits February 11, 2025 20:41
Co-authored-by: Christian Schilling <account@christianschilling.net>
Co-authored-by: Christian Schilling <account@christianschilling.net>
Copy link
Member

@schillic schillic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good after the fix!

test/ConcreteOperations/convex_hull.jl Outdated Show resolved Hide resolved
Co-authored-by: Christian Schilling <account@christianschilling.net>
@schillic
Copy link
Member

Thanks!

@schillic schillic merged commit a6c4ec6 into JuliaReach:master Feb 12, 2025
6 checks passed
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.

Convex hull algorithm in 2D sensitive to numeric precision
3 participants