# findCollinearOverlaps

Canonical: https://docs.shumoku.dev/ja/library/api/findCollinearOverlaps
Language: ja

@shumoku/core · 0.4.0 · function

# findCollinearOverlaps

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/invariants.ts#L159)

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`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/invariants.ts#L159)
