Spherical harmonics are functions of the polar and azimuthal angles, ϕ and θ respectively, which can be conveniently collected into a unit vector n (θ, ϕ) pointing in the direction of those angles, in the Cartesian basis it is: