Lines Matching refs:sy

480 static void nsvg__xformSetScale(float* t, float sx, float sy)  in nsvg__xformSetScale()  argument
483 t[2] = 0.0f; t[3] = sy; in nsvg__xformSetScale()
919 float sy = sqrtf(t[1]*t[1] + t[3]*t[3]); in nsvg__getAverageScale() local
920 return (sx + sy) * 0.5f; in nsvg__getAverageScale()
2864 static void nsvg__scaleGradient(NSVGgradient* grad, float tx, float ty, float sx, float sy) in nsvg__scaleGradient() argument
2870 nsvg__xformSetScale(t, sx, sy); in nsvg__scaleGradient()
2878 float tx, ty, sx, sy, us, bounds[4], t[6], avgs; in nsvg__scaleToViewbox() local
2909 sy = p->viewHeight > 0 ? p->image->height / p->viewHeight : 0; in nsvg__scaleToViewbox()
2916 sx = sy = nsvg__minf(sx, sy); in nsvg__scaleToViewbox()
2918 ty += nsvg__viewAlign(p->viewHeight*sy, p->image->height, p->alignY) / sy; in nsvg__scaleToViewbox()
2921 sx = sy = nsvg__maxf(sx, sy); in nsvg__scaleToViewbox()
2923 ty += nsvg__viewAlign(p->viewHeight*sy, p->image->height, p->alignY) / sy; in nsvg__scaleToViewbox()
2928 sy *= us; in nsvg__scaleToViewbox()
2929 avgs = (sx+sy) / 2.0f; in nsvg__scaleToViewbox()
2932 shape->bounds[1] = (shape->bounds[1] + ty) * sy; in nsvg__scaleToViewbox()
2934 shape->bounds[3] = (shape->bounds[3] + ty) * sy; in nsvg__scaleToViewbox()
2937 path->bounds[1] = (path->bounds[1] + ty) * sy; in nsvg__scaleToViewbox()
2939 path->bounds[3] = (path->bounds[3] + ty) * sy; in nsvg__scaleToViewbox()
2943 pt[1] = (pt[1] + ty) * sy; in nsvg__scaleToViewbox()
2948 nsvg__scaleGradient(shape->fill.gradient, tx,ty, sx,sy); in nsvg__scaleToViewbox()
2953 nsvg__scaleGradient(shape->stroke.gradient, tx,ty, sx,sy); in nsvg__scaleToViewbox()