Module pathfinding::utils
source · Expand description
Miscellaneous utilities
Functions§
- Constrain
value
into0..upper
by adding or subtractingupper
as many times as necessary. - Repeatedly call
move_in_direction
until the returned value isNone
. - Move a two-dimensional coordinate into a given direction provided that:
- Return the square root of
n
ifn
is square,None
otherwise.