Axiom.Core.RectangleF.Merge C# (CSharp) Method

Merge() public method

public Merge ( RectangleF rhs ) : RectangleF
rhs RectangleF
return RectangleF
		public RectangleF Merge( RectangleF rhs )
		{
			if ( Width == 0 )
			{
				this = rhs;
			}
			else
			{
				Left = System.Math.Min( Left, rhs.Left );
				Right = System.Math.Max( Right, rhs.Right );
				Top = System.Math.Min( Top, rhs.Top );
				Bottom = System.Math.Max( Bottom, rhs.Bottom );
			}

			return this;
		}