theta#

VectorArray.theta()[source]#

Calculate polar angles in rad.

Calculates \(\arccos(v_z / |\vec{v}|)\), corresponding to the polar angles \(\theta\) in spherical coordinates.

Returns:
thetasndarray

The angles in rad within [−0, π].