RectFromCenterSizeBJ

Parameters
center location
width real
height real
comment
patch

1.00

Source
Blizzard.j
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