Skip to content

use f32 for note coordinates#6

Merged
eadgbear merged 1 commit intoeadgbear:mainfrom
icewind1991:note-resource-f32
Mar 23, 2025
Merged

use f32 for note coordinates#6
eadgbear merged 1 commit intoeadgbear:mainfrom
icewind1991:note-resource-f32

Conversation

@icewind1991
Copy link
Contributor

@icewind1991 icewind1991 commented Mar 23, 2025

Without floats you can't make notes that don't span the whole post...

This did introduce the need to implement PartialEq/Eq manually in order to use total ordering to compare the floats. Just removing Eq from NoteResource and all types containing it would also be an option but I went with the more minimal change.

Additionally it probably makes sense to use Vec<[f32; 2]> instead of Vec<Vec<f32>>

Copy link
Owner

@eadgbear eadgbear left a comment

Choose a reason for hiding this comment

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

LGTM!

@eadgbear eadgbear merged commit 3677c0c into eadgbear:main Mar 23, 2025
1 of 4 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.

2 participants