SkiaSharp.SKMatrix.SetScaleTranslate C# (CSharp) Method

SetScaleTranslate() public method

public SetScaleTranslate ( float sx, float sy, float tx, float ty ) : void
sx float
sy float
tx float
ty float
return void
        public void SetScaleTranslate(float sx, float sy, float tx, float ty)
        {
            scaleX = sx;
            skewX = 0;
            transX = tx;

            skewY = 0;
            scaleY = sy;
            transY = ty;

            persp0 = 0;
            persp1 = 0;
            persp2 = 1;

#if OPTIMIZED_SKMATRIX
			typeMask = Mask.RectStaysRect | 
				((sx != 1 || sy != 1) ? Mask.Scale : 0) |
				((tx != 0 || ty != 0) ? Mask.Translate : 0);
#endif
        }