theta#
- Vector.theta()[source]#
Calculate polar angle in rad.
Calculates \(\arccos(v_z / |\vec{v}|)\), corresponding to the polar angle \(\theta\) in spherical coordinates.
- Returns:
- theta
float The angle in rad within [0, π].
- theta
Calculate polar angle in rad.
Calculates \(\arccos(v_z / |\vec{v}|)\), corresponding to the polar angle \(\theta\) in spherical coordinates.
floatThe angle in rad within [0, π].