Lines Matching refs:sy

219     SkScalar sy = fMat[kMSkewY];  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()
247 SkScalar sy = fMat[kMSkewY]; in preservesRightAngles() local
249 if (is_degenerate_2x2(mx, sx, sy, my)) { in preservesRightAngles()
255 vec[0].set(mx, sy); 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()
336 fMat[kMScaleY] = sy; 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()
371 fMat[kMSkewX] *= sy; in preScale()
372 fMat[kMScaleY] *= sy; in preScale()
373 fMat[kMPersp1] *= sy; 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
520 fMat[kMSkewY] = sy; in setSkew()
522 fMat[kMTransY] = -sy * px; in setSkew()
530 void SkMatrix::setSkew(SkScalar sx, SkScalar sy) { in setSkew() argument
535 fMat[kMSkewY] = sy; 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()
583 SkScalar ty, sy = dst.height() / src.height(); in setRectToRect() local
587 if (sx > sy) { in setRectToRect()
589 sx = sy; in setRectToRect()
591 sy = sx; in setRectToRect()
596 ty = dst.fTop - src.fTop * sy; in setRectToRect()
601 diff = dst.width() - src.width() * sy; in setRectToRect()
603 diff = dst.height() - src.height() * sy; in setRectToRect()
617 this->setScaleTranslate(sx, sy, tx, ty); in setRectToRect()
958 SkScalar sy = m.getScaleY(); in Scale_pts() local
961 dst->fY = src->fY * sy + ty; in Scale_pts()
966 Sk4s scale4(sx, sy, sx, sy); in Scale_pts()
989 SkScalar sy = src->fY; in Persp_pts() local
993 SkScalar x = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Persp_pts()
994 SkScalar y = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Persp_pts()
996 SkScalar z = sx * m.fMat[kMPersp0] + (sy * m.fMat[kMPersp1] + m.fMat[kMPersp2]); in Persp_pts()
998 SkScalar z = sdot(sx, m.fMat[kMPersp0], sy, m.fMat[kMPersp1]) + m.fMat[kMPersp2]; in Persp_pts()
1017 SkScalar sy = m.getScaleY(); in Affine_vpts() local
1022 src->fX * ky + src->fY * sy + ty); in Affine_vpts()
1027 Sk4s scale4(sx, sy, sx, sy); in Affine_vpts()
1079 SkScalar sy = src->fY; in MapHomogeneousPointsWithStride() local
1084 SkScalar x = sdot(sx, mat[M::kMScaleX], sy, mat[M::kMSkewX], sw, mat[M::kMTransX]); in MapHomogeneousPointsWithStride()
1085 SkScalar y = sdot(sx, mat[M::kMSkewY], sy, mat[M::kMScaleY], sw, mat[M::kMTransY]); in MapHomogeneousPointsWithStride()
1086 SkScalar w = sdot(sx, mat[M::kMPersp0], sy, mat[M::kMPersp1], sw, mat[M::kMPersp2]); in MapHomogeneousPointsWithStride()
1137 SkScalar sy = fMat[kMScaleY]; in mapRectScaleTranslate() local
1140 Sk4f scale(sx, sy, sx, sy); in mapRectScaleTranslate()
1184 void SkMatrix::Persp_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Persp_xy() argument
1188 SkScalar x = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Persp_xy()
1189 SkScalar y = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Persp_xy()
1190 SkScalar z = sdot(sx, m.fMat[kMPersp0], sy, m.fMat[kMPersp1]) + m.fMat[kMPersp2]; in Persp_xy()
1198 void SkMatrix::RotTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in RotTrans_xy() argument
1203 pt->fX = sx * m.fMat[kMScaleX] + (sy * m.fMat[kMSkewX] + m.fMat[kMTransX]); in RotTrans_xy()
1204 pt->fY = sx * m.fMat[kMSkewY] + (sy * m.fMat[kMScaleY] + m.fMat[kMTransY]); in RotTrans_xy()
1206 pt->fX = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in RotTrans_xy()
1207 pt->fY = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in RotTrans_xy()
1211 void SkMatrix::Rot_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Rot_xy() argument
1218 pt->fX = sx * m.fMat[kMScaleX] + (sy * m.fMat[kMSkewX] + m.fMat[kMTransX]); in Rot_xy()
1219 pt->fY = sx * m.fMat[kMSkewY] + (sy * m.fMat[kMScaleY] + m.fMat[kMTransY]); in Rot_xy()
1221 pt->fX = sdot(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) + m.fMat[kMTransX]; in Rot_xy()
1222 pt->fY = sdot(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) + m.fMat[kMTransY]; in Rot_xy()
1226 void SkMatrix::ScaleTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in ScaleTrans_xy() argument
1232 pt->fY = sy * m.fMat[kMScaleY] + m.fMat[kMTransY]; in ScaleTrans_xy()
1235 void SkMatrix::Scale_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Scale_xy() argument
1243 pt->fY = sy * m.fMat[kMScaleY]; in Scale_xy()
1246 void SkMatrix::Trans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Trans_xy() argument
1251 pt->fY = sy + m.fMat[kMTransY]; in Trans_xy()
1254 void SkMatrix::Identity_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Identity_xy() argument
1259 pt->fY = sy; in Identity_xy()
1596 const SkScalar sy = SkVector::Length(this->getSkewX(), this->getScaleY()); in decomposeScale() local
1597 if (!SkScalarIsFinite(sx) || !SkScalarIsFinite(sy) || in decomposeScale()
1598 SkScalarNearlyZero(sx) || SkScalarNearlyZero(sy)) { in decomposeScale()
1603 scale->set(sx, sy); in decomposeScale()
1608 remaining->postScale(SkScalarInvert(sx), SkScalarInvert(sy)); in decomposeScale()