geometry op• Data kinds: primitive → measurement
• Call: import fullseye as fs; fs.ledger.distance_line_line(p1, d1, p2, d2) (to call the implementation directly, import match3d; match3d.distance_line_line(p1, d1, p2, d2); from the registry, ops3d.get("distance_line_line"))
The distance between two lines (skew lines included). Falls back to point-line distance when they are parallel.
> The detailed description below is the original text — the summary and the headings are translated.
★これは無限直線の距離。手足・ロボットのリンク・配管のような有限線分に
使うと、離れているのに 0 が返ることがある(実測: (0,0,0)-(1,0,0) と
(5,0,0)-(6,0,0) で 0.0、真値 4.0)。線分どうしは
:func:distance_segment_segment を使うこと —— 安全距離の判定でここを取り違えると
危険を過小評価する側に外れる。
`n = d̂1 × d̂2 を取り、|n| < 1e-9(平行)なら distance_point_line(p2, p1, d1)`、それ
以外は `|(p2 − p1)·n̂|`(共通垂線の長さ)を float で返す。交わる直線では 0。
`p1, d1, p2, d2` は数値の 2 または 3 ベクトル、次元の混在は ValueError。
2-D の非平行な直線は交わるので距離 0 のはずだが、`np.cross がスカラーになるため @` が
失敗する(2-D は平行な場合しか通らない)。3-D で使うこと。単位は入力座標の単位。
用途: 2 本の軸(`fit_line_3d`)の同軸度、穴ピッチ。
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• geometry_metrology — py -3.11 examples_3d/geometry_metrology.py
measurement as input)vol_gaussian_psf · fuse_to_voxel · fresnel_reflectance · snell_angle
geometry)line_from_2points · plane_from_3points · angle_3points · angle_between_lines · angle_between_planes · angle_line_plane · distance_point_plane · distance_point_line
*Provenance: match3d.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.