normalize_packing#
- normalize_packing(packing, k=None, target=1.0)#
Normalize the packing so that a given circle has radius target.
- Parameters:
packing (dict[str, tuple[complex, float]]) – Mapping from keys to (center, radius).
k (str) – Optional key of the circle to normalize. If None, uses the smallest.
target (float) – Desired radius for the selected circle.
- Returns:
New packing with all circles scaled accordingly.
- Return type:
dict[str, tuple[complex, float]]