Lines Matching defs:sy
476 static void nsvg__xformSetScale(float* t, float sx, float sy)
479 t[2] = 0.0f; t[3] = sy;
903 float sy = sqrtf(t[1]*t[1] + t[3]*t[3]);
904 return (sx + sy) * 0.5f;
2775 static void nsvg__scaleGradient(NSVGgradient* grad, float tx, float ty, float sx, float sy)
2781 nsvg__xformSetScale(t, sx, sy);
2789 float tx, ty, sx, sy, us, bounds[4], t[6], avgs;
2820 sy = p->viewHeight > 0 ? p->image->height / p->viewHeight : 0;
2827 sx = sy = nsvg__minf(sx, sy);
2829 ty += nsvg__viewAlign(p->viewHeight*sy, p->image->height, p->alignY) / sy;
2832 sx = sy = nsvg__maxf(sx, sy);
2834 ty += nsvg__viewAlign(p->viewHeight*sy, p->image->height, p->alignY) / sy;
2839 sy *= us;
2840 avgs = (sx+sy) / 2.0f;
2843 shape->bounds[1] = (shape->bounds[1] + ty) * sy;
2845 shape->bounds[3] = (shape->bounds[3] + ty) * sy;
2848 path->bounds[1] = (path->bounds[1] + ty) * sy;
2850 path->bounds[3] = (path->bounds[3] + ty) * sy;
2854 pt[1] = (pt[1] + ty) * sy;
2859 nsvg__scaleGradient(shape->fill.gradient, tx,ty, sx,sy);
2864 nsvg__scaleGradient(shape->stroke.gradient, tx,ty, sx,sy);