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

Remove default Angle wrapping behavior #1478

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

antonok-edm
Copy link
Contributor

see: #100 (comment), and the commit message here

In CAD applications, it's often useful to work with negative angles
(where the direction is significant) or angles with a magnitude greater
than 1 revolution (such as for helical sweeps or mechanical
simulations).

`Angle` is currently only used to specify rotations, where wrapping
doesn't matter. This commit removes the default wrapping behavior, which
can still be accessed manually as needed using `Angle::normalized`. It
may still be worth exploring automatic wrapping solutions in the future
to reduce floating point inaccuracy across repeated calculations, but
it's unlikely to cause problems any time soon.
Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

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

Thank you, @antonok-edm! The change looks great, and your reasoning makes perfect sense. Merging!

@hannobraun hannobraun merged commit d560659 into hannobraun:main Jan 4, 2023
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