PixelFarm.Agg.RectInt.ExpandToInclude C# (CSharp) Method

ExpandToInclude() public method

public ExpandToInclude ( RectInt rectToInclude ) : void
rectToInclude RectInt
return void
        public void ExpandToInclude(RectInt rectToInclude)
        {
            if (Right < rectToInclude.Right) Right = rectToInclude.Right;
            if (Top < rectToInclude.Top) Top = rectToInclude.Top;
            if (Left > rectToInclude.Left) Left = rectToInclude.Left;
            if (Bottom > rectToInclude.Bottom) Bottom = rectToInclude.Bottom;
        }