SuperMap.WindowsPhone.Core.Rectangle2D.Expand C# (CSharp) Method

Expand() public method

${WP_core_Rectangle2D_method_Expand_D}
public Expand ( double expandFactor ) : Rectangle2D
expandFactor double
return Rectangle2D
        public Rectangle2D Expand(double expandFactor)
        {
            if (expandFactor > 0)
            {
                Rectangle2D clone = this.Clone();
                clone._x += (1 - expandFactor) * clone._width * 0.5;
                clone._y += (1 - expandFactor) * clone._height * 0.5;
                clone._height *= expandFactor;
                clone._width *= expandFactor;
                return clone;
            }
            return Rectangle2D.Empty;
        }