cos_theta#

VectorArray.cos_theta()[source]#

Calculate cosines of the polar angles.

For all vectors, calculates \(v_z / |\vec{v}|\), corresponding to the cosine of the polar angle \(\theta\) in spherical coordinates.

Returns:
cos_thetandarray

The cosines of the polar angles within [−1, 1].