Après un pas de longueur d, on a :

x = d\;cos \phi \; sin  \theta

y = d\;sin \phi \; sin  \theta

z = d\;cos \theta