Skip to content

A possible change in API to enable returning either box IDs or indices into array (or both)#4

Open
alexpyattaev wants to merge 9 commits intoderivator:mainfrom
alexpyattaev:main
Open

A possible change in API to enable returning either box IDs or indices into array (or both)#4
alexpyattaev wants to merge 9 commits intoderivator:mainfrom
alexpyattaev:main

Conversation

@alexpyattaev
Copy link

Hi! We love the library but found it necessary to have it return indices into box array (as we do not want to use a hashmap to convert from box IDs back into box's coordinates). As a result we've made this special return enum that allows the caller to fetch either IDs or box indices in the set (or both), as appropriate. It compiles into the same assembly so it does not change the speed, just makes the API more flexible. Let me know if this is interesting/useful.

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