List of utility methods to do Curve Intersect
int | intersectQuadAndCubic(double qx1, double qy1, double qx2, double qy2, double qx3, double qy3, double cx1, double cy1, double cx2, double cy2, double cx3, double cy3, double cx4, double cy4, double[] params) Checks whether the quad (x1, y1) - (x2, y2) - (x3, y3) and the cubic (cx1, cy1) - (cx2, cy2) - (cx3, cy3) - (cx4, cy4) curves intersect. int quantity = 0; double[] initParams = new double[3]; double[] xCoefs1 = new double[3]; double[] yCoefs1 = new double[3]; double[] xCoefs2 = new double[4]; double[] yCoefs2 = new double[4]; xCoefs1[0] = qx1 - 2 * qx2 + qx3; xCoefs1[1] = 2 * qx2 - 2 * qx1; ... |
int | intersectQuads(double x1, double y1, double x2, double y2, double x3, double y3, double qx1, double qy1, double qx2, double qy2, double qx3, double qy3, double[] params) Checks whether two quads (x1, y1) - (x2, y2) - (x3, y3) and (qx1, qy1) - (qx2, qy2) - (qx3, qy3) intersect. double[] initParams = new double[2]; double[] xCoefs1 = new double[3]; double[] yCoefs1 = new double[3]; double[] xCoefs2 = new double[3]; double[] yCoefs2 = new double[3]; int quantity = 0; xCoefs1[0] = x1 - 2 * x2 + x3; xCoefs1[1] = -2 * x1 + 2 * x2; ... |