public DashArray() { this(NFastDoubleArrayJSO.make()); }
public static NFastDoubleArrayJSO make(double d, double... list) { NFastDoubleArrayJSO jso = make(); jso.push(d, list); return jso; }
public final static NFastDoubleArrayJSO convertEndpointToCenterParameterization(final double x1, final double y1, final double x2, final double y2, final double fa, final double fs, double rx, double ry, final double pv) { final NFastDoubleArrayJSO points = NFastDoubleArrayJSO.make(); convertEndpointToCenterParameterization(points, x1, y1, x2, y2, fa, fs, rx, ry, pv); return points; }
public static final FilterConvolveMatrix make() { return NFastDoubleArrayJSO.make().cast(); }
public final PathPartList C(final double x1, final double y1, final double x2, final double y2, final double x, final double y) { push(PathPartEntryJSO.make(PathPartEntryJSO.BEZIER_CURVETO_ABSOLUTE, NFastDoubleArrayJSO.make(x1, y1, x2, y2, m_cpx = x, m_cpy = y))); return this; }
public final PathPartList V(final double y) { push(PathPartEntryJSO.make(PathPartEntryJSO.LINETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx, m_cpy = y))); return this; }
public final PathPartList M(final double x, final double y) { m_mov = true; push(PathPartEntryJSO.make(PathPartEntryJSO.MOVETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx = x, m_cpy = y))); return this; }
public final PathPartList L(final double x, final double y) { push(PathPartEntryJSO.make(PathPartEntryJSO.LINETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx = x, m_cpy = y))); return this; }
public final PathPartList H(final double x) { push(PathPartEntryJSO.make(PathPartEntryJSO.LINETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx = x, m_cpy))); return this; }
public final PathPartList Q(final double cx, final double cy, final double x, final double y) { push(PathPartEntryJSO.make(PathPartEntryJSO.QUADRATIC_CURVETO_ABSOLUTE, NFastDoubleArrayJSO.make(cx, cy, m_cpx = x, m_cpy = y))); return this; }
public final PathPartList Z() { push(PathPartEntryJSO.make(PathPartEntryJSO.CLOSE_PATH_PART, NFastDoubleArrayJSO.make())); return close(); }
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); } }
private static final NFastDoubleArrayJSO findAllRoots(final int derivative, final NFastDoubleArrayJSO values) final NFastDoubleArrayJSO root = NFastDoubleArrayJSO.make();
NFastDoubleArrayJSO tval = NFastDoubleArrayJSO.make();
private static final NFastDoubleArrayJSO getOrthogonalLinePoints(final Point2DArray points, Direction tailDirection, Direction headDirection, final double correction) final NFastDoubleArrayJSO buffer = NFastDoubleArrayJSO.make();