/** * 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(); } }
public double getDy(double t) { return splineY.getDx(t); }
/** * Creates a new 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 mxSpline1D(double[] controlPointProportions, double[] positions1D) { setValues(controlPointProportions, positions1D); }
splineX = new mxSpline1D(t, x); splineY = new mxSpline1D(t, y);
double newX = splineX.getFastValue(t); double newY = splineY.getFastValue(t);
splineX = new mxSpline1D(t, x); splineY = new mxSpline1D(t, y);
double newX = splineX.getFastValue(t); double newY = splineY.getFastValue(t);
public double getDy(double t) { return splineY.getDx(t); }
/** * Creates a new 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 mxSpline1D(double[] controlPointProportions, double[] positions1D) { setValues(controlPointProportions, positions1D); }
/** * 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(); } }
public double getDx(double t) { return splineX.getDx(t); }
public double getDx(double t) { return splineX.getDx(t); }