direction op• Data kinds: normals → pairs
• Call: import reprconv; reprconv.normals_to_angles(normals) (or opsreprconv.get("normals_to_angles"))
Normals `(N,3) → azimuth/elevation pairs (N,2) **[deg]**. The exit from normals`.
> The detailed description below is the original text — the summary and the headings are translated.
`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 のベクトルを含む。
• 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.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
• representation_roundtrip — py -3.11 examples/representation_roundtrip.py
pairs as input)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. 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.