fullseye

angle_to_matrix — REPRCONV algebra op

使い方

角度 [度] → z 軸まわりの回転行列 matrix (3,3)angle の出口。

angle_to_matrix(90) は軸1(y)を軸2(x)へ送り、軸2(x)を −軸1(−y)へ 送る(R @ [0,1,0] = [0,0,1]R @ [0,0,1] = [0,-1,0]、実測)。 2-D の :func:rot_scale_to_matrix と同じ [[c,-s],[s,c]] の向き (軸 0 → 軸 1)を軸 (1, 2) に置いたもので、:func:matrix_to_angleatan2(R[2,1], R[1,1]) もこの向きで往復する。であることと どちらの軸へ回るかが、この段落の全内容である。ラジアンを渡すと 例外は出ず、ただ 57.3 分の 1 だけ回った行列が返る。

Args: angle: 度。 Returns: (3, 3) float64、行列式 1 の直交行列。 Raises: ValueError: スカラでない / 非有限。

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

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

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

matrix_to_descriptor · matrix_to_angle · matrix_to_rot_scale

同カテゴリ(algebra)

matrix_to_angle · rot_scale_to_matrix · matrix_to_rot_scale · shift_to_vector · vector_to_shift · cscalar_to_polar · polar_to_cscalar · countrate_to_counts


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

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