SuperMap.WinRT.Core.Rectangle2D.FromXYWidthHeight C# (CSharp) Method

FromXYWidthHeight() private method

private FromXYWidthHeight ( double x, double y, double width, double height ) : void
x double
y double
width double
height double
return void
        private void FromXYWidthHeight(double x, double y, double width, double height)
        {
            if (width < 0.0)
            {
                throw new ArgumentException(ExceptionStrings.WidthLessThanZero);
            }
            if (height < 0.0)
            {
                throw new ArgumentException(ExceptionStrings.HeightLessThanZero);
            }
            if (DoubleUtil.ValueCheck(x))
            {
                this._x = x;
            }
            else
            {
                this._x = double.NegativeInfinity;
            }
            if (DoubleUtil.ValueCheck(y))
            {
                this._y = y;
            }
            else
            {
                this._y = double.NegativeInfinity;
            }
            if (DoubleUtil.ValueCheck(width))
            {
                this._width = width;
            }
            else
            {
                this._width = 0;
            }
            if (DoubleUtil.ValueCheck(height))
            {
                this._height = height;
            }
            else
            {
                this._height = 0;
            }
        }