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

Fix inaccuracies in float<->integer angle conversions #959

Merged
merged 2 commits into from
Mar 12, 2022

Conversation

ubruhin
Copy link
Member

@ubruhin ubruhin commented Mar 11, 2022

Similar to #954, floats were not rounded to the nearest integer when converting floating point angles (degrees or radians) to Angle objects which use integers for the angle representation. Slightly improves accuracy of some operations (including Gerber output in some cases).

@ubruhin ubruhin added the bug label Mar 11, 2022
@ubruhin ubruhin added this to the 0.1.7 milestone Mar 11, 2022
@ubruhin ubruhin self-assigned this Mar 11, 2022
@ubruhin ubruhin changed the title Angle: Fix inaccuracies in integer<->float conversions Fix inaccuracies in float<->integer angle conversions Mar 11, 2022
@ubruhin ubruhin merged commit bcb8565 into master Mar 12, 2022
@ubruhin ubruhin deleted the fix-angle-inaccuracies branch March 12, 2022 11:05
ubruhin added a commit that referenced this pull request Sep 26, 2022
Fix inaccuracies in float<->integer angle conversions

(cherry picked from commit bcb8565)

# Conflicts:
#	tests/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant