/** * Set values for this Spline. * @param controlPointProportions the proportion along the curve, from 0->1 * that each control point lies on * @param positions1D the co-ordinate position in the current dimension that * each control point lies on */ public void setValues(double[] controlPointProportions, double[] positions1D) { this.len = controlPointProportions; this.pos1D = positions1D; if (len.length > 1) { calculateCoefficients(); } }
/** * Set values for this Spline. * @param controlPointProportions the proportion along the curve, from 0->1 * that each control point lies on * @param positions1D the co-ordinate position in the current dimension that * each control point lies on */ public void setValues(double[] controlPointProportions, double[] positions1D) { this.len = controlPointProportions; this.pos1D = positions1D; if (len.length > 1) { calculateCoefficients(); } }