Skip to content

Fix Pad::as_angle incorrect math#30

Merged
applejag merged 1 commit into
mainfrom
bugfix/as-angle-math
Jan 12, 2026
Merged

Fix Pad::as_angle incorrect math#30
applejag merged 1 commit into
mainfrom
bugfix/as-angle-math

Conversation

@applejag

Copy link
Copy Markdown
Collaborator

Closes #26

@applejag applejag self-assigned this Jan 12, 2026
@applejag applejag added the bug Something isn't working label Jan 12, 2026
@applejag applejag merged commit 1c51948 into main Jan 12, 2026
2 checks passed
@applejag applejag deleted the bugfix/as-angle-math branch January 12, 2026 20:03
@applejag applejag mentioned this pull request Jan 12, 2026
Comment thread src/input_pad.mbt
@@ -100,11 +100,18 @@ pub fn Pad::as_dpad8(self : Pad) -> DPad8 {
/// [polar coordinate]: https://en.wikipedia.org/wiki/Polar_coordinate_system
pub fn Pad::as_angle(self : Pad) -> Angle {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

#34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pad::as_angle() math is wrong, should not multiply with @micromath.FRAC_PI_2

2 participants