Skip to content

Add hash and == for Straight and Turn#168

Merged
gpeairs merged 1 commit intomainfrom
gp/seg-equals
Mar 10, 2026
Merged

Add hash and == for Straight and Turn#168
gpeairs merged 1 commit intomainfrom
gp/seg-equals

Conversation

@gpeairs
Copy link
Member

@gpeairs gpeairs commented Mar 9, 2026

Also fixes BSpline hash and == so that segments with different units give the same hash despite JuliaPhysics/Unitful.jl#379. Unitful and unitless segments are never equal and never have the same hash. Angles are considered mod 360 degrees.

The remaining segment types should also implement these methods.

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

@laylagi laylagi left a comment

Choose a reason for hiding this comment

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

#166 passed after rebasing onto this. Thanks!

@gpeairs gpeairs merged commit 8d1890a into main Mar 10, 2026
10 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