Utilities
| Source guide | Project README |
Small shared helpers for ordering, wrapping values and yielding asynchronous work.
When to use these helpers
wrap is specific to angles in radians, not arbitrary ranges. After
yieldTask, callers must recheck cancellation or revisions.
- compareDistance.js: compare items by distance.
- wrap.js: wrap an angle between negative and positive pi.
- yieldTask.js: yield to a timer.