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 rotation value - modulo computation #9

Merged
merged 1 commit into from
Nov 28, 2021
Merged

Conversation

thikade
Copy link
Contributor

@thikade thikade commented Jun 28, 2020

Fixes issue #8
Function arg to rotation(int) can be in range [0, 360].
Internally, _rotation is stored as int with range [0, 3].
Thus, modulo argument needs to be 4.

@mrgfisher
Copy link

Yep - this confused me for a few minutes as couldn't get my 'tree' to display with the correct orientation. Changed to % 4 and all good (as in the commit above).

@dhorlick
Copy link

@jayniz Could we merge this?

Note that there is another (conflicted) pull request open with the same fix.

@jayniz jayniz merged commit 4fef6f4 into jayniz:master Nov 28, 2021
@jayniz
Copy link
Owner

jayniz commented Nov 28, 2021

Totally missed the PRs, sorry folks ❤️

@dhorlick
Copy link

Thanks, @jayniz!

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.

5 participants