Lines Matching refs:sx
57 /** Sets SkMatrix to scale by (sx, sy). Returned matrix is:
59 | sx 0 0 |
63 @param sx horizontal scale factor
67 static SkMatrix SK_WARN_UNUSED_RESULT Scale(SkScalar sx, SkScalar sy) {
69 m.setScale(sx, sy);
633 /** Sets SkMatrix to scale by sx and sy, about a pivot point at (px, py).
636 @param sx horizontal scale factor
641 SkMatrix& setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
643 /** Sets SkMatrix to scale by sx and sy about at pivot point at (0, 0).
645 @param sx horizontal scale factor
648 SkMatrix& setScale(SkScalar sx, SkScalar sy);
761 /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from scaling by (sx, sy)
767 | A B C | | sx 0 dx |
768 Matrix = | D E F |, S(sx, sy, px, py) = | 0 sy dy |
773 dx = px - sx * px
778 | A B C | | sx 0 dx | | A*sx B*sy A*dx+B*dy+C |
779 Matrix * S(sx, sy, px, py) = | D E F | | 0 sy dy | = | D*sx E*sy D*dx+E*dy+F |
780 | G H I | | 0 0 1 | | G*sx H*sy G*dx+H*dy+I |
782 @param sx horizontal scale factor
787 SkMatrix& preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
789 /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from scaling by (sx, sy)
795 | A B C | | sx 0 0 |
796 Matrix = | D E F |, S(sx, sy) = | 0 sy 0 |
801 | A B C | | sx 0 0 | | A*sx B*sy C |
802 Matrix * S(sx, sy) = | D E F | | 0 sy 0 | = | D*sx E*sy F |
803 | G H I | | 0 0 1 | | G*sx H*sy I |
805 @param sx horizontal scale factor
808 SkMatrix& preScale(SkScalar sx, SkScalar sy);
956 /** Sets SkMatrix to SkMatrix constructed from scaling by (sx, sy) about pivot point
962 | J K L | | sx 0 dx |
963 Matrix = | M N O |, S(sx, sy, px, py) = | 0 sy dy |
968 dx = px - sx * px
973 | sx 0 dx | | J K L | | sx*J+dx*P sx*K+dx*Q sx*L+dx+R |
974 S(sx, sy, px, py) * Matrix = | 0 sy dy | | M N O | = | sy*M+dy*P sy*N+dy*Q sy*O+dy*R |
977 @param sx horizontal scale factor
982 SkMatrix& postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
984 /** Sets SkMatrix to SkMatrix constructed from scaling by (sx, sy) about pivot point
990 | J K L | | sx 0 0 |
991 Matrix = | M N O |, S(sx, sy) = | 0 sy 0 |
996 | sx 0 0 | | J K L | | sx*J sx*K sx*L |
997 S(sx, sy) * Matrix = | 0 sy 0 | | M N O | = | sy*M sy*N sy*O |
1000 @param sx horizontal scale factor
1003 SkMatrix& postScale(SkScalar sx, SkScalar sy);
1793 | sx 0 tx |
1797 @param sx horizontal scale factor to store
1802 void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty) {
1803 fMat[kMScaleX] = sx;
1816 if (sx != 1 || sy != 1) {
1862 constexpr SkMatrix(SkScalar sx, SkScalar kx, SkScalar tx,
1865 : fMat{sx, kx, tx,