Least-squares fitting of parametric curves with a linear function of