Lines Matching refs:sx

218     SkScalar sx = fMat[kMSkewX];  in isSimilarity()  local
221 if (is_degenerate_2x2(mx, sx, sy, my)) { in isSimilarity()
227 return (SkScalarNearlyEqual(mx, my, tol) && SkScalarNearlyEqual(sx, -sy, tol)) in isSimilarity()
228 || (SkScalarNearlyEqual(mx, -my, tol) && SkScalarNearlyEqual(sx, sy, tol)); in isSimilarity()
246 SkScalar sx = fMat[kMSkewX]; in preservesRightAngles() local
249 if (is_degenerate_2x2(mx, sx, sy, my)) { in preservesRightAngles()
256 vec[1].set(sx, my); in preservesRightAngles()
323 void SkMatrix::setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in setScale() argument
324 if (1 == sx && 1 == sy) { in setScale()
327 this->setScaleTranslate(sx, sy, px - sx * px, py - sy * py); in setScale()
331 void SkMatrix::setScale(SkScalar sx, SkScalar sy) { in setScale() argument
332 if (1 == sx && 1 == sy) { in setScale()
335 fMat[kMScaleX] = sx; in setScale()
347 void SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in preScale() argument
348 if (1 == sx && 1 == sy) { in preScale()
353 m.setScale(sx, sy, px, py); in preScale()
357 void SkMatrix::preScale(SkScalar sx, SkScalar sy) { in preScale() argument
358 if (1 == sx && 1 == sy) { in preScale()
367 fMat[kMScaleX] *= sx; in preScale()
368 fMat[kMSkewY] *= sx; in preScale()
369 fMat[kMPersp0] *= sx; in preScale()
387 void SkMatrix::postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in postScale() argument
388 if (1 == sx && 1 == sy) { in postScale()
392 m.setScale(sx, sy, px, py); in postScale()
396 void SkMatrix::postScale(SkScalar sx, SkScalar sy) { in postScale() argument
397 if (1 == sx && 1 == sy) { in postScale()
401 m.setScale(sx, sy); in postScale()
515 void SkMatrix::setSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in setSkew() argument
517 fMat[kMSkewX] = sx; in setSkew()
518 fMat[kMTransX] = -sx * py; in setSkew()
530 void SkMatrix::setSkew(SkScalar sx, SkScalar sy) { in setSkew() argument
532 fMat[kMSkewX] = sx; in setSkew()
545 void SkMatrix::preSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in preSkew() argument
547 m.setSkew(sx, sy, px, py); in preSkew()
551 void SkMatrix::preSkew(SkScalar sx, SkScalar sy) { in preSkew() argument
553 m.setSkew(sx, sy); in preSkew()
557 void SkMatrix::postSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in postSkew() argument
559 m.setSkew(sx, sy, px, py); in postSkew()
563 void SkMatrix::postSkew(SkScalar sx, SkScalar sy) { in postSkew() argument
565 m.setSkew(sx, sy); in postSkew()
582 SkScalar tx, sx = dst.width() / src.width(); in setRectToRect() local
587 if (sx > sy) { in setRectToRect()
589 sx = sy; in setRectToRect()
591 sy = sx; in setRectToRect()
595 tx = dst.fLeft - src.fLeft * sx; in setRectToRect()
617 this->setScaleTranslate(sx, sy, tx, ty); in setRectToRect()
945 SkScalar sx = m.getScaleX(); in Scale_pts() local
948 dst->fX = src->fX * sx + tx; in Scale_pts()
954 Sk4s scale4(sx, sy, sx, sy); in Scale_pts()
978 SkScalar sx = src->fX; in Persp_pts() local
981 SkScalar x = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Persp_pts()
982 SkScalar y = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Persp_pts()
984 SkScalar z = sx * m.fMat[kMPersp0] + (sy * m.fMat[kMPersp1] + m.fMat[kMPersp2]); in Persp_pts()
986 SkScalar z = sdot(sx, m.fMat[kMPersp0], sy, m.fMat[kMPersp1]) + m.fMat[kMPersp2]; in Persp_pts()
1004 SkScalar sx = m.getScaleX(); in Affine_vpts() local
1009 dst->set(src->fX * sx + src->fY * kx + tx, in Affine_vpts()
1015 Sk4s scale4(sx, sy, sx, sy); in Affine_vpts()
1066 SkScalar sx = src->fX; in MapHomogeneousPointsWithStride() local
1072 SkScalar x = sdot(sx, mat[M::kMScaleX], sy, mat[M::kMSkewX], sw, mat[M::kMTransX]); in MapHomogeneousPointsWithStride()
1073 SkScalar y = sdot(sx, mat[M::kMSkewY], sy, mat[M::kMScaleY], sw, mat[M::kMTransY]); in MapHomogeneousPointsWithStride()
1074 SkScalar w = sdot(sx, mat[M::kMPersp0], sy, mat[M::kMPersp1], sw, mat[M::kMPersp2]); in MapHomogeneousPointsWithStride()
1124 SkScalar sx = fMat[kMScaleX]; in mapRectScaleTranslate() local
1128 Sk4f scale(sx, sy, sx, sy); in mapRectScaleTranslate()
1172 void SkMatrix::Persp_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Persp_xy() argument
1176 SkScalar x = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Persp_xy()
1177 SkScalar y = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Persp_xy()
1178 SkScalar z = sdot(sx, m.fMat[kMPersp0], sy, m.fMat[kMPersp1]) + m.fMat[kMPersp2]; in Persp_xy()
1186 void SkMatrix::RotTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in RotTrans_xy() argument
1191 pt->fX = sx * m.fMat[kMScaleX] + (sy * m.fMat[kMSkewX] + m.fMat[kMTransX]); in RotTrans_xy()
1192 pt->fY = sx * m.fMat[kMSkewY] + (sy * m.fMat[kMScaleY] + m.fMat[kMTransY]); in RotTrans_xy()
1194 pt->fX = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in RotTrans_xy()
1195 pt->fY = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in RotTrans_xy()
1199 void SkMatrix::Rot_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Rot_xy() argument
1206 pt->fX = sx * m.fMat[kMScaleX] + (sy * m.fMat[kMSkewX] + m.fMat[kMTransX]); in Rot_xy()
1207 pt->fY = sx * m.fMat[kMSkewY] + (sy * m.fMat[kMScaleY] + m.fMat[kMTransY]); in Rot_xy()
1209 pt->fX = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Rot_xy()
1210 pt->fY = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Rot_xy()
1214 void SkMatrix::ScaleTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in ScaleTrans_xy() argument
1219 pt->fX = sx * m.fMat[kMScaleX] + m.fMat[kMTransX]; in ScaleTrans_xy()
1223 void SkMatrix::Scale_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Scale_xy() argument
1230 pt->fX = sx * m.fMat[kMScaleX]; in Scale_xy()
1234 void SkMatrix::Trans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Trans_xy() argument
1238 pt->fX = sx + m.fMat[kMTransX]; in Trans_xy()
1242 void SkMatrix::Identity_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Identity_xy() argument
1246 pt->fX = sx; in Identity_xy()
1583 const SkScalar sx = SkVector::Length(this->getScaleX(), this->getSkewY()); in decomposeScale() local
1585 if (!SkScalarIsFinite(sx) || !SkScalarIsFinite(sy) || in decomposeScale()
1586 SkScalarNearlyZero(sx) || SkScalarNearlyZero(sy)) { in decomposeScale()
1591 scale->set(sx, sy); in decomposeScale()
1596 remaining->postScale(SkScalarInvert(sx), SkScalarInvert(sy)); in decomposeScale()