How do I parameterize a curve (in spherical coordinates, preferably) such that the parameter t is the linear position along the curve?