direction opnormals → pairsimport fullseye as fs; fs.ledger.normals_to_angles(normals) (実装を直接呼ぶなら import reprconv; reprconv.normals_to_angles(normals)、台帳から引くなら opsreprconv.get("normals_to_angles"))法線 (N,3) → 方位・仰角の対 (N,2) [度]。normals の出口。
az = atan2(c1, c0) を軸0-軸1 平面内の方位、el = asin(c2/|v|) を
軸2 からの仰角とする。x/y/z でなく「軸0/1/2」で定義するのは、この repo に
(z,y,x) 順の点群と (x,y,z) 順の点群が両方いるため —— 名前で書くと、渡された
配列がどちらの流儀かに依存して意味が変わってしまう。
可逆: :func:angles_to_normals と往復して 方向は厳密に戻る(実測
max|Δ| = 6.1e-16、selftest が毎回測る)。戻らないのは長さだけ ——
法線は向きなので、非単位ベクトルを渡すと往復で単位ベクトルになる。
Args: normals: (N, 3) 実配列。零ベクトルは拒否(方位が定義できない)。 Returns: (N, 2) float64。列 0 = 方位 (-180, 180]、列 1 = 仰角 [-90, 90]。 Raises: ValueError: 形状が (N,3) でない / 非有限 / 長さ 0 のベクトルを含む。
py -3.11 examples/representation_roundtrip.pypairs を入力に取れる)angles_to_normals · shape_index_to_curvature · pairs_to_signal · pairs_to_image2d · pairs_to_table · polar_to_cscalar
direction)angles_to_normals · normals_to_egi
Provenance: reprconv.py — REPRCONV operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.