Shape classification of the parametric cubic curve and parametric B-spline cubic curve