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

Allow set_point! to work for e.g. StaticArrays and Point2f, and fix Float32 examples for many cases #74

Merged
merged 4 commits into from
Aug 6, 2023

Conversation

DanielVandH
Copy link
Member

set_point! was fixed by just changing the general vector methods, and specialising the Vector case.

The Float32 examples were fixed by just changing how the triangle_area is computed: The original formula is used, and then if it is not positive try another accurate formula. Moreover, we now convert to Float64 to that only Float64 are used in these computations. This fixes #72. Will need to address #73 soon.

@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Patch coverage: 78.57% and project coverage change: -0.05% ⚠️

Comparison is base (51e9deb) 93.49% compared to head (aa99da3) 93.44%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
- Coverage   93.49%   93.44%   -0.05%     
==========================================
  Files          73       73              
  Lines        5439     5450      +11     
==========================================
+ Hits         5085     5093       +8     
- Misses        354      357       +3     
Files Changed Coverage Δ
src/data_structures/statistics.jl 78.63% <70.00%> (-0.48%) ⬇️
src/interfaces/points.jl 94.18% <100.00%> (+0.13%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DanielVandH DanielVandH merged commit 4167b51 into main Aug 6, 2023
6 of 8 checks passed
@DanielVandH DanielVandH deleted the fix-set-point branch August 11, 2023 11:25
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.

Integer division error with Float32 for clipped Voronoi
1 participant