Lines Matching defs:curve
568 static void nsvg__curveBounds(float* bounds, float* curve)
572 float* v0 = &curve[0];
573 float* v1 = &curve[2];
574 float* v2 = &curve[4];
575 float* v3 = &curve[6];
583 // Bezier curve fits inside the convex hull of it's control points.
588 // Add bezier curve inflection points in X and Y.
910 float curve[4*2], curveBounds[4];
913 nsvg__xformPoint(&curve[0], &curve[1], path->pts[0], path->pts[1], xform);
915 nsvg__xformPoint(&curve[2], &curve[3], path->pts[(i+1)*2], path->pts[(i+1)*2+1], xform);
916 nsvg__xformPoint(&curve[4], &curve[5], path->pts[(i+2)*2], path->pts[(i+2)*2+1], xform);
917 nsvg__xformPoint(&curve[6], &curve[7], path->pts[(i+3)*2], path->pts[(i+3)*2+1], xform);
918 nsvg__curveBounds(curveBounds, curve);
931 curve[0] = curve[6];
932 curve[1] = curve[7];
1034 float* curve;
1058 curve = &path->pts[i*2];
1059 nsvg__curveBounds(bounds, curve);