easystarjs
easystarjs copied to clipboard
setDirectionalCondition can be more efficient if a Set is used
The check for directional conditions uses a loop and would be much more efficient with a Set. Is this something you would accept a PR for?
Ah I see. Yes the directions themselves are a list of directions. We could make them a set. I think it's worthwhile.