Warcraft III resources & community, 2003–2006 · archived

IsRectInRegion

not rated
Submitted by StarcraftfreakFunctions0 downloads
Checks whether a rect is inside a region.

Source

function IsRectInRegion takes region whichRegion, rect whichRect returns boolean
    return (IsPointInRegion(whichRegion, GetRectMinX(whichRect), GetRectMinY(whichRect))) and (IsPointInRegion(whichRegion, GetRectMaxX(whichRect), GetRectMinY(whichRect))) and (IsPointInRegion(whichRegion, GetRectMaxX(whichRect), GetRectMaxY(whichRect))) and (IsPointInRegion(whichRegion, GetRectMinX(whichRect), GetRectMaxY(whichRect)))
endfunction

Comments

0

No comments.