Lines Matching refs:p0
396 static void nsvg__initClosed(NSVGpoint* left, NSVGpoint* right, NSVGpoint* p0, NSVGpoint* p1, float… in nsvg__initClosed() argument
399 float dx = p1->x - p0->x; in nsvg__initClosed()
400 float dy = p1->y - p0->y; in nsvg__initClosed()
402 float px = p0->x + dx*len*0.5f, py = p0->y + dy*len*0.5f; in nsvg__initClosed()
486 static void nsvg__bevelJoin(NSVGrasterizer* r, NSVGpoint* left, NSVGpoint* right, NSVGpoint* p0, NS… in nsvg__bevelJoin() argument
489 float dlx0 = p0->dy, dly0 = -p0->dx; in nsvg__bevelJoin()
506 static void nsvg__miterJoin(NSVGrasterizer* r, NSVGpoint* left, NSVGpoint* right, NSVGpoint* p0, NS… in nsvg__miterJoin() argument
509 float dlx0 = p0->dy, dly0 = -p0->dx; in nsvg__miterJoin()
542 static void nsvg__roundJoin(NSVGrasterizer* r, NSVGpoint* left, NSVGpoint* right, NSVGpoint* p0, NS… in nsvg__roundJoin() argument
546 float dlx0 = p0->dy, dly0 = -p0->dx; in nsvg__roundJoin()
608 NSVGpoint* p0, *p1; in nsvg__expandStroke() local
614 p0 = &points[npoints-1]; in nsvg__expandStroke()
620 p0 = &points[0]; in nsvg__expandStroke()
627 nsvg__initClosed(&left, &right, p0, p1, lineWidth); in nsvg__expandStroke()
632 float dx = p1->x - p0->x; in nsvg__expandStroke()
633 float dy = p1->y - p0->y; in nsvg__expandStroke()
636 nsvg__buttCap(r, &left, &right, p0, dx, dy, lineWidth, 0); in nsvg__expandStroke()
638 nsvg__squareCap(r, &left, &right, p0, dx, dy, lineWidth, 0); in nsvg__expandStroke()
640 nsvg__roundCap(r, &left, &right, p0, dx, dy, lineWidth, ncap, 0); in nsvg__expandStroke()
646 nsvg__roundJoin(r, &left, &right, p0, p1, lineWidth, ncap); in nsvg__expandStroke()
648 nsvg__bevelJoin(r, &left, &right, p0, p1, lineWidth); in nsvg__expandStroke()
650 nsvg__miterJoin(r, &left, &right, p0, p1, lineWidth); in nsvg__expandStroke()
654 p0 = p1++; in nsvg__expandStroke()
663 float dx = p1->x - p0->x; in nsvg__expandStroke()
664 float dy = p1->y - p0->y; in nsvg__expandStroke()
678 NSVGpoint* p0, *p1; in nsvg__prepareStroke() local
680 p0 = &r->points[r->npoints-1]; in nsvg__prepareStroke()
684 p0->dx = p1->x - p0->x; in nsvg__prepareStroke()
685 p0->dy = p1->y - p0->y; in nsvg__prepareStroke()
686 p0->len = nsvg__normalize(&p0->dx, &p0->dy); in nsvg__prepareStroke()
688 p0 = p1++; in nsvg__prepareStroke()
692 p0 = &r->points[r->npoints-1]; in nsvg__prepareStroke()
696 dlx0 = p0->dy; in nsvg__prepareStroke()
697 dly0 = -p0->dx; in nsvg__prepareStroke()
717 cross = p1->dx * p0->dy - p0->dx * p1->dy; in nsvg__prepareStroke()
728 p0 = p1++; in nsvg__prepareStroke()
736 NSVGpoint* p0, *p1; in nsvg__flattenShapeStroke() local
756 p0 = &r->points[r->npoints-1]; in nsvg__flattenShapeStroke()
758 if (nsvg__ptEquals(p0->x,p0->y, p1->x,p1->y, r->distTol)) { in nsvg__flattenShapeStroke()
760 p0 = &r->points[r->npoints-1]; in nsvg__flattenShapeStroke()