invert_packing#
- invert_packing(packing, center)#
Invert all circles in the packing around a given complex point.
- Parameters:
packing (dict[str, tuple[complex, float]]) – Dictionary mapping keys to (center, radius) pairs.
center (complex) – Complex point to invert around.
- Returns:
A new packing where all circles are inverted.
- Return type:
dict[str, tuple[complex, float]]
Example
>>> inverted = invert_packing(packing, 0j)