RectFromCenterSizeBJ

Parameters
centerlocation
widthreal
heightreal
comment
patch

1.00

Source
Blizzard.j (suggest an edit or discuss on Github)
return type
rect
Source code
function RectFromCenterSizeBJ takes location center, real width, real height returns rect
    local real x = GetLocationX( center )
    local real y = GetLocationY( center )
    return Rect( x - width*0.5, y - height*0.5, x + width*0.5, y + height*0.5 )
endfunction