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:
thetafloat

The angle in rad within [0, π].