NRR.PowerDiagram.CellAlgebra — exact half‑space description of power cells #
Given n sites s : Fin n → E2 and weights w : Fin n → ℝ, the power (Laguerre) cell of
site i is {x | ∀ j, powerDist s w i x ≤ powerDist s w j x} where
powerDist s w i x = ‖x - sᵢ‖² - wᵢ.
Expanding ‖x - a‖² = ‖x‖² - 2⟪x,a⟫ + ‖a‖² and cancelling the shared ‖x‖² term shows the
pairwise inequality powerDist s w i x ≤ powerDist s w j x is equivalent to membership in the
closed half‑space {x | ⟪u, x⟫ ≤ c} with exact normal / offset data
When i = j the normal is 0 and the offset is 0, so the half‑space is the whole plane,
matching the (always true) inequality powerDist s w i x ≤ powerDist s w i x.
This yields the exact intersection‑of‑half‑spaces representation of each power cell.
Separating normal for the pair (i, j): the inner normal of the closed half‑space
whose boundary is the radical axis of sites i and j. Chosen as 2 • (sⱼ - sᵢ) so that
powerDist s w i x ≤ powerDist s w j x ↔ ⟪sepNormal s i j, x⟫ ≤ sepOffset s w i j.
Equations
- NRR.PowerDiagram.sepNormal s i j = 2 • (s j - s i)