Expand description
Miscellaneous utilities
Functionsยง
- constrain
- Constrain
valueinto0..upperby adding or subtractingupperas many times as necessary. - in_
direction - Repeatedly call
move_in_directionuntil the returned value isNone. - move_
in_ direction - Move a two-dimensional coordinate into a given direction provided that:
- uint_
sqrt - Return the square root of
nifnis square,Noneotherwise.