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

Adding indexFromCoord function to CartGrid class #151

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

blenk13
Copy link
Contributor

@blenk13 blenk13 commented Nov 29, 2023

CartGrid already has a findRectNearest function for finding the nearest grid location to a supplied 2D (x, y) coordinate.
This PR adds a similar function that is faster and simpler for use solely with rectangular grids.

@sebjameswml sebjameswml merged commit e1a1d2a into ABRG-Models:main Nov 29, 2023
1 check passed
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.

2 participants