Convert cartesian to parametric vector equation