Spherical harmonic analysis in terms of line integral