Function: fill()
ts
function fill(v, target): number | undefined;Defined in: pwl.ts:417
The σ ≥ 0 at which a claim v fills a slot of target pixels: the one rule for a claim in its slot, which ScopeRegistry.fit and ScopeRegistry.solveFixed both take.
- The σ at which
vistarget(solve). - Else, where
vat σ = 0, its fixed parts, already fills the slot up to rounding (overflows), σ = 0: nothing is left for what grows with σ. - Else, where its fixed parts are longer than the slot, the σ at which the part of
vthat grows with σ alone fills it (rising):vdrawn as if its fixed parts took no room.
Undefined when none of these does (a claim that does not grow and is shorter than the slot).
Parameters
v
target
number
Returns
number | undefined
