Spherical coordinates (r, θ, φ) as often used in mathematics : radial distance r , azimuthal angle θ , and polar angle φ . The meanings of θ and φ have been swapped compared to the physics convention.