Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

findCollinearOverlaps

ソース

APIの説明は英語のcanonical 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[]

パラメーター

名前 説明 既定値
lines readonly PolylineSpec[] 追加説明はありません。
options CollinearOptions 追加説明はありません。 {}

戻り値

CollinearOverlap[]

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