void SetSplineControllerSplines(HingeControl hingeControl, Genotype.EGenotypeIndex index) { var splines = genotype.GetSplineController(index); float[] initializeSplineCps = splines.Take(splines.Length / 2).ToArray(); float[] cyclicSplineCps = splines.Skip(splines.Length / 2).ToArray(); hingeControl.SetSplineControllers(new HermiteSpline(initializeSplineCps), new HermiteSpline(cyclicSplineCps)); }