private static final void addPoint(final NFastDoubleArrayJSO buffer, final double x, final double y) { buffer.push(x, y); }
public final DashArray push(double dash) { if (dash < 0) { dash = Math.abs(dash); } m_jso.push(dash); return this; }
public static NFastDoubleArrayJSO make(double d, double... list) { NFastDoubleArrayJSO jso = make(); jso.push(d, list); return jso; }
public final PathPartList A(final double rx, final double ry, final double ps, final double fa, final double fs, final double x, final double y) { final NFastDoubleArrayJSO points = PathPartList.convertEndpointToCenterParameterization(m_cpx, m_cpy, x, y, fa, fs, rx, ry, ps); points.push(m_cpx = x); points.push(m_cpy = y); push(PathPartEntryJSO.make(PathPartEntryJSO.ARCTO_ABSOLUTE, points)); return this; }
points.push(cx, cy, rx, ry, th, dt, ps, fs);
private static final double getDerivative(final int derivative, final double t, final NFastDoubleArrayJSO values) { final int n = values.size() - 1; if (n == 0) { return 0; } if (derivative == 0) { double value = 0; for (int k = 0; k <= n; k++) { value += binomials(n, k) * Math.pow(1 - t, n - k) * Math.pow(t, k) * values.get(k); } return value; } else { final NFastDoubleArrayJSO lowers = NFastDoubleArrayJSO.make(); for (int k = 0; k < n; k++) { lowers.push(n * (values.get(k + 1) - values.get(k))); } return getDerivative(derivative - 1, t, lowers); } }