Lines Matching +defs:val +defs:src
736 * Subdivides the quadratic curve specified by the <code>src</code>
740 * objects can be the same as the <code>src</code> object or
742 * @param src the quadratic curve to be subdivided
749 public static void subdivide(QuadCurve2D src,
752 double x1 = src.getX1();
753 double y1 = src.getY1();
754 double ctrlx = src.getCtrlX();
755 double ctrly = src.getCtrlY();
756 double x2 = src.getX2();
757 double y2 = src.getY2();
774 * stored in the <code>src</code> array at indices
780 * and offset as the <code>src</code> array.
787 * @param src the array holding the coordinates for the source curve
800 public static void subdivide(double src[], int srcoff,
803 double x1 = src[srcoff + 0];
804 double y1 = src[srcoff + 1];
805 double ctrlx = src[srcoff + 2];
806 double ctrly = src[srcoff + 3];
807 double x2 = src[srcoff + 4];
808 double y2 = src[srcoff + 5];
1028 * in t, ready for solving against val with solveQuadratic.
1030 * val = Py(t) = C1*(1-t)^2 + 2*CP*t*(1-t) + C2*t^2
1033 * 0 = (C1 - val) + (2*CP - 2*C1)*t + (C1 - 2*CP + C2)*t^2
1035 * C = C1 - val
1039 private static void fillEqn(double eqn[], double val,
1041 eqn[0] = c1 - val;