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

Impl PartialEq and PartialOrd on TilePos #211

Merged
merged 2 commits into from
Aug 7, 2022
Merged

Impl PartialEq and PartialOrd on TilePos #211

merged 2 commits into from
Aug 7, 2022

Conversation

tehsmeely
Copy link
Contributor

Adding PartialEq and PartialOrd as derives on TilePos because it's pretty common to want to do a bunch of operations on TilePos

PartialEq certainly at least, could take of leave PartialOrd as the default lexicographic ordering might not make sense
(i.e. that TilePos{x:2, y:0} > TilePos {x:1, y:100})

Copy link
Owner

@StarArawn StarArawn left a comment

Choose a reason for hiding this comment

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

Makes sense and is a simple change! 🙂

@StarArawn StarArawn merged commit cb5a67b into StarArawn:main Aug 7, 2022
@tehsmeely
Copy link
Contributor Author

Thanks!

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