Since the _local_to_world() and _world_to_local() return tuples, what do you think about having a class that implements points instead of passing x, y arguments? They could also carry a flag for world or local coordinates, allowing the functions to take either pre-translated or untranslated coords.
Since the
_local_to_world()and_world_to_local()return tuples, what do you think about having a class that implements points instead of passingx, yarguments? They could also carry a flag forworldorlocalcoordinates, allowing the functions to take either pre-translated or untranslated coords.