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

Allow coordinates to be more types #187

Merged
merged 6 commits into from
Mar 11, 2018

Conversation

amandasaurus
Copy link
Member

This PR allows the coordinates to be a larger range of types, not just Float. Specially it allows for integer coordinates. Some algorithms have been 'expanded' to support this new CoordinateType, but most only make sense for Floats and have been left. I've only changed what I've used myself, perhaps more algorithms could be expanded. I think this should be a backwards compatible change.

This fixes #137

Copy link
Member

@frewsxcv frewsxcv left a comment

Choose a reason for hiding this comment

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

this all looks good to me! ✅

@frewsxcv
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Mar 11, 2018
187: Allow coordinates to be more types r=frewsxcv a=rory

This PR allows the coordinates to be a larger range of types, not just `Float`. Specially it allows for integer coordinates. Some algorithms have been 'expanded' to support this new `CoordinateType`, but most only make sense for `Float`s and have been left. I've only changed what I've used myself, perhaps more algorithms could be expanded. I think this should be a backwards compatible change.

This fixes #137
@bors
Copy link
Contributor

bors bot commented Mar 11, 2018

Build succeeded

@bors bors bot merged commit 84b4fc5 into georust:master Mar 11, 2018
@amandasaurus amandasaurus deleted the any-num-coordinates branch February 20, 2019 21:32
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.

Coordinates are stored as Floats. Could they also be integers?
2 participants