:mod:`util `---general utility functions ============================================== .. module:: util .. toctree:: :maxdepth: 2 util-cb util-grid Abstract -------- .. autofunction:: engine.util.dd .. autofunction:: engine.util.ir .. autofunction:: engine.util.sum_pos .. autofunction:: engine.util.pos_in_rect .. autofunction:: engine.util.normalise_colour .. autofunction:: engine.util.call_in_nest .. autofunction:: engine.util.bezier .. autoclass:: engine.util.Singleton .. autoclass:: engine.util.OwnError .. autoclass:: engine.util.Owned Random ------ .. autofunction:: engine.util.randsgn .. autofunction:: engine.util.rand0 .. autofunction:: engine.util.weighted_rand Graphics -------- .. autofunction:: engine.util.align_rect .. autofunction:: engine.util.position_sfc .. autofunction:: engine.util.convert_sfc .. autofunction:: engine.util.combine_drawn .. autofunction:: engine.util.blank_sfc