@shumoku/core · 0.4.0 · function
findEdgeNodePiercing
Find wires that run THROUGH a foreign node box (inflated by `inflate`): any segment crossing one of the box's four borders. A wire may touch its own endpoints' boxes. Grid-accelerated, exact (same predicate as the old routed-score inner loop — this IS that loop, extracted so the score and the constraint check share one definition).
findEdgeNodePiercing(lines: readonly PierceLineSpec[], nodeBoxes: readonly BoxSpec[], inflate?: number): EdgeNodePierce[] Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
lines | readonly PierceLineSpec[] | No additional description. | — |
nodeBoxes | readonly BoxSpec[] | No additional description. | — |
inflate | number | No additional description. | 2 |
Returns
EdgeNodePierce[]