require struct to have different curves formulation for different index
eg. I want a curve of dimension 6 where the first 3 dimensions are formulated as a Bezier and the last 3 as a polynomial.
It can already be done with the polynomial class as all curves can be converted to polynomial, but it could be simplified with a dedicated struct or helper.