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

Cast to number_t to avoid floating point errors #26629

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Feb 20, 2025

Resolves: #26597

Floating point values aren't being compared properly in RectX<T>::intersected, RectX<T>::intersects, or RectX<T>::contains as their type needs to be number_t to use our overloaded <= & >= comparisons.

Alternatively, I could add an inline method like the existing isEqual for <= & >= comparisons.

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.

Dynamics erroneously mask preceding barline (sometimes)
1 participant