Lines Matching refs:sx
189 SkScalar sx = fMat[kMSkewX]; in isSimilarity() local
194 && SkScalarNearlyZero(sx) && SkScalarNearlyZero(sy)) { in isSimilarity()
200 vec[0].set(mx, sx); in isSimilarity()
261 void SkMatrix::setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in setScale() argument
262 if (SK_Scalar1 == sx && SK_Scalar1 == sy) { in setScale()
265 fMat[kMScaleX] = sx; in setScale()
267 fMat[kMTransX] = px - SkScalarMul(sx, px); in setScale()
278 void SkMatrix::setScale(SkScalar sx, SkScalar sy) { in setScale() argument
279 if (SK_Scalar1 == sx && SK_Scalar1 == sy) { in setScale()
282 fMat[kMScaleX] = sx; in setScale()
302 bool SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in preScale() argument
304 m.setScale(sx, sy, px, py); in preScale()
308 bool SkMatrix::preScale(SkScalar sx, SkScalar sy) { in preScale() argument
309 if (SK_Scalar1 == sx && SK_Scalar1 == sy) { in preScale()
315 m.setScale(sx, sy); in preScale()
323 fMat[kMScaleX] = SkScalarMul(fMat[kMScaleX], sx); in preScale()
324 fMat[kMSkewY] = SkScalarMul(fMat[kMSkewY], sx); in preScale()
325 fMat[kMPersp0] = SkScalarMul(fMat[kMPersp0], sx); in preScale()
336 bool SkMatrix::postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in postScale() argument
337 if (SK_Scalar1 == sx && SK_Scalar1 == sy) { in postScale()
341 m.setScale(sx, sy, px, py); in postScale()
345 bool SkMatrix::postScale(SkScalar sx, SkScalar sy) { in postScale() argument
346 if (SK_Scalar1 == sx && SK_Scalar1 == sy) { in postScale()
350 m.setScale(sx, sy); in postScale()
472 void SkMatrix::setSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in setSkew() argument
474 fMat[kMSkewX] = sx; in setSkew()
475 fMat[kMTransX] = SkScalarMul(-sx, py); in setSkew()
487 void SkMatrix::setSkew(SkScalar sx, SkScalar sy) { in setSkew() argument
489 fMat[kMSkewX] = sx; in setSkew()
502 bool SkMatrix::preSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in preSkew() argument
504 m.setSkew(sx, sy, px, py); in preSkew()
508 bool SkMatrix::preSkew(SkScalar sx, SkScalar sy) { in preSkew() argument
510 m.setSkew(sx, sy); in preSkew()
514 bool SkMatrix::postSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in postSkew() argument
516 m.setSkew(sx, sy, px, py); in postSkew()
520 bool SkMatrix::postSkew(SkScalar sx, SkScalar sy) { in postSkew() argument
522 m.setSkew(sx, sy); in postSkew()
540 SkScalar tx, sx = SkScalarDiv(dst.width(), src.width()); in setRectToRect() local
545 if (sx > sy) { in setRectToRect()
547 sx = sy; in setRectToRect()
549 sy = sx; in setRectToRect()
553 tx = dst.fLeft - SkScalarMul(src.fLeft, sx); in setRectToRect()
575 fMat[kMScaleX] = sx; in setRectToRect()
583 if (sx != SK_Scalar1 || sy != SK_Scalar1) { in setRectToRect()
1104 SkScalar sx = src->fX; in Rot_pts() local
1106 dst->fY = SkScalarMul(sx, ky) + SkScalarMul(sy, my); in Rot_pts()
1107 dst->fX = SkScalarMul(sx, mx) + SkScalarMul(sy, kx); in Rot_pts()
1126 SkScalar sx = src->fX; in RotTrans_pts() local
1128 dst->fY = SkScalarMul(sx, ky) + SkScalarMulAdd(sy, my, ty); in RotTrans_pts()
1129 dst->fX = SkScalarMul(sx, mx) + SkScalarMulAdd(sy, kx, tx); in RotTrans_pts()
1146 SkScalar sx = src->fX; in Persp_pts() local
1149 SkScalar x = SkScalarMul(sx, m.fMat[kMScaleX]) + in Persp_pts()
1151 SkScalar y = SkScalarMul(sx, m.fMat[kMSkewY]) + in Persp_pts()
1154 SkFixed z = SkFractMul(sx, m.fMat[kMPersp0]) + in Persp_pts()
1157 float z = SkScalarMul(sx, m.fMat[kMPersp0]) + in Persp_pts()
1247 void SkMatrix::Persp_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Persp_xy() argument
1251 SkScalar x = SkScalarMul(sx, m.fMat[kMScaleX]) + in Persp_xy()
1253 SkScalar y = SkScalarMul(sx, m.fMat[kMSkewY]) + in Persp_xy()
1256 SkFixed z = SkFractMul(sx, m.fMat[kMPersp0]) + in Persp_xy()
1260 float z = SkScalarMul(sx, m.fMat[kMPersp0]) + in Persp_xy()
1282 void SkMatrix::RotTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in RotTrans_xy() argument
1287 pt->fX = fixmuladdmul(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + in RotTrans_xy()
1289 pt->fY = fixmuladdmul(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + in RotTrans_xy()
1292 pt->fX = SkScalarMul(sx, m.fMat[kMScaleX]) + in RotTrans_xy()
1294 pt->fY = SkScalarMul(sx, m.fMat[kMSkewY]) + in RotTrans_xy()
1299 void SkMatrix::Rot_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Rot_xy() argument
1306 pt->fX = fixmuladdmul(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]); in Rot_xy()
1307 pt->fY = fixmuladdmul(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]); in Rot_xy()
1309 pt->fX = SkScalarMul(sx, m.fMat[kMScaleX]) + in Rot_xy()
1311 pt->fY = SkScalarMul(sx, m.fMat[kMSkewY]) + in Rot_xy()
1316 void SkMatrix::ScaleTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in ScaleTrans_xy() argument
1321 pt->fX = SkScalarMulAdd(sx, m.fMat[kMScaleX], m.fMat[kMTransX]); in ScaleTrans_xy()
1325 void SkMatrix::Scale_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Scale_xy() argument
1332 pt->fX = SkScalarMul(sx, m.fMat[kMScaleX]); in Scale_xy()
1336 void SkMatrix::Trans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Trans_xy() argument
1340 pt->fX = sx + m.fMat[kMTransX]; in Trans_xy()
1344 void SkMatrix::Identity_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Identity_xy() argument
1348 pt->fX = sx; in Identity_xy()