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

Adding a function to angle to reduce it to the princlple domain [0, 2𝜋) radians #490

Open
tedgin opened this issue Nov 1, 2024 · 0 comments

Comments

@tedgin
Copy link

tedgin commented Nov 1, 2024

When working with angles, it is often useful to convert their values to the principle domain [0, 2𝜋) radians. For examples, an angle of 540 degrees would be converted to 180 degrees, and an angle of -90 degrees would be converted to 270 degrees. This is different from the existing Angle::fract::<revolution>(), which returns the fractional part of a revolution. fract::<revolution>() maps -90 degrees to -90 degree.

Would a function like this make sense in uom? If so, I'm willing to submit a PR.

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

No branches or pull requests

1 participant