Lines Matching defs:ends
451 compute_ends(const double ks[4], double ends[2][4], double seg_ch)
468 ends[0][0] = th_even - th_odd;
469 ends[1][0] = th_even + th_odd;
472 ends[0][1] = k0_even - k0_odd;
473 ends[1][1] = k0_even + k0_odd;
477 ends[0][2] = k1_even - k1_odd;
478 ends[1][2] = k1_even + k1_odd;
482 ends[0][3] = k2_even - k2_odd;
483 ends[1][3] = k2_even + k2_odd;
489 compute_pderivs(const spiro_seg *s, double ends[2][4], double derivs[4][2][4],
498 compute_ends(s->ks, ends, s->seg_ch);
506 derivs[j][k][i] = recip_d * (try_ends[k][j] - ends[k][j]);
710 double ends[2][4];
715 compute_pderivs(&s[i], ends, derivs, jinc);
755 add_mat_line(m, v, derivs[0][0], th - ends[0][0], 1, j, jthl, jinc, nmat);
756 add_mat_line(m, v, derivs[1][0], ends[0][1], -1, j, jk0l, jinc, nmat);
757 add_mat_line(m, v, derivs[2][0], ends[0][2], -1, j, jk1l, jinc, nmat);
758 add_mat_line(m, v, derivs[3][0], ends[0][3], -1, j, jk2l, jinc, nmat);
759 add_mat_line(m, v, derivs[0][1], -ends[1][0], 1, j, jthr, jinc, nmat);
760 add_mat_line(m, v, derivs[1][1], -ends[1][1], 1, j, jk0r, jinc, nmat);
761 add_mat_line(m, v, derivs[2][1], -ends[1][2], 1, j, jk1r, jinc, nmat);
762 add_mat_line(m, v, derivs[3][1], -ends[1][3], 1, j, jk2r, jinc, nmat);
946 double ends[2][4];
949 compute_ends(s[i].ks, ends, s[i].seg_ch);
950 return s[i].seg_th - ends[0][0];
952 compute_ends(s[i - 1].ks, ends, s[i - 1].seg_ch);
953 return s[i - 1].seg_th + ends[1][0];