There's a direct conversion from a given cartesian triple (x, y, z) to spherical coordinates (rho, angle theta, angle phi). In theory angle phi is the angle (rho, z axis) but it seems that the automatic conversion gives the complement of angle phi.
Was I thinking wrongly or is it a bug? Please illuminate me. Thanks.