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

Bresenham circle without diagonal jumping #55

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

felix-clark
Copy link
Contributor

Added a version of the Bresenham circle algorithm that does not jump in x and y simultaneously. Replacing with this algorithm version in the field of view calculation solves an issue where points just inside diagonal jumps in the circle would not be included.

@thebracket
Copy link
Collaborator

This looks awesome at first glance. Going to test it locally and then merge unless I find something wrong. Thanks!

@thebracket thebracket merged commit b53022d into amethyst:master Jan 28, 2020
@felix-clark felix-clark deleted the field-of-view branch January 28, 2020 21:07
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.

None yet

2 participants