fullseye

angle_between_lines — 3D geometry op

使い方

2 直線方向のなす鋭角(度)。

arccos(|d̂1·d̂2|) を度で返す(float)。絶対値を取るので [0, 90](向きの前後を区別しない。 鈍角側が要るなら 180 − する)。d1, d2 は方向ベクトル(長さは問わない、内部で単位化)、 数値の 2 または 3 ベクトルで次元の混在は ValueError。零ベクトルは 90 が返る。 用途: fit_line_3d / line_from_2points の方向同士の平行度・直角度チェック(0 に近いほど 平行、90 に近いほど直交)。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(measurement を入力に取れる)

vol_gaussian_psf · fuse_to_voxel · fresnel_reflectance · snell_angle

同カテゴリ(geometry)

line_from_2points · plane_from_3points · angle_3points · angle_between_planes · angle_line_plane · distance_point_plane · distance_point_line · distance_line_line


Provenance: match3d.py — 3D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.