Lines Matching refs:dir
76 static void pointslope(privpath_t *pp, int i, int j, dpoint_t *ctr, dpoint_t *dir) { in pointslope() argument
127 dir->x = -b/l; in pointslope()
128 dir->y = a/l; in pointslope()
133 dir->x = -c/l; in pointslope()
134 dir->y = b/l; in pointslope()
138 dir->x = dir->y = 0; /* sometimes this can happen when k=4: in pointslope()
329 int ct[4], dir; in calc_lon() local
365 dir = (3+3*(pt[mod(i+1,n)].x-pt[i].x)+(pt[mod(i+1,n)].y-pt[i].y))/2; in calc_lon()
366 ct[dir]++; in calc_lon()
378 dir = (3+3*sign(pt[k].x-pt[k1].x)+sign(pt[k].y-pt[k1].y))/2; in calc_lon()
379 ct[dir]++; in calc_lon()
654 dpoint_t *dir = NULL; /* dir[m] */ in adjust_vertices() local
663 SAFE_CALLOC(dir, m, dpoint_t); in adjust_vertices()
676 pointslope(pp, po[i], j, &ctr[i], &dir[i]); in adjust_vertices()
683 d = sq(dir[i].x) + sq(dir[i].y); in adjust_vertices()
691 v[0] = dir[i].y; in adjust_vertices()
692 v[1] = -dir[i].x; in adjust_vertices()
830 free(dir); in adjust_vertices()
836 free(dir); in adjust_vertices()