Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

findCollinearOverlaps

Source

Find pairs of edges with segments that run on the same track: parallel (within ~1°), closer than the sum of their half-widths + clearance, and sharing more than `minSharedLength` of extent. Reports each edge pair once with its longest shared run.

findCollinearOverlaps(lines: readonly PolylineSpec[], options?: CollinearOptions): CollinearOverlap[]

Parameters

Parameter Type Description Default
lines readonly PolylineSpec[] No additional description.
options CollinearOptions No additional description. {}

Returns

CollinearOverlap[]

libs/@shumoku/core/src/layout/invariants.ts:159