Skip to content

Changed coefficients of UnitAngle to more exact values #618

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

Merged
merged 1 commit into from
Sep 6, 2016

Conversation

Qbyte248
Copy link
Contributor

@Qbyte248 Qbyte248 commented Sep 2, 2016

The provided values were not as exact as they could be. In fact the value for "revolutions" was completely wrong (2π instead of 360°).

The provided values were not as exact as they could be. In fact the value for "revolutions" was completely wrong (2π instead of 360°).
static let gradians = 0.9
static let revolutions = 6.28319
static let revolutions = 360.0
Copy link

Choose a reason for hiding this comment

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

2π rad = 360° so why do you think it was wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's true but the base unit is degrees so the conversion factor has to be 360.

@parkera
Copy link
Contributor

parkera commented Sep 6, 2016

@swift-ci please test linux

@parkera parkera merged commit 7868123 into swiftlang:master Sep 6, 2016
@lifeissweetgood
Copy link

Good catch, 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.

4 participants