Rect
- Parameters
minx realminy realmaxx realmaxy real- comment
Returns a new rectangle as defined by two points (minX, minY) and (maxX, maxY).
The rectangle size and coordinates are limited to valid map coordinates, see
GetWorldBounds.In Warcraft 3 the coordinates follow the regular cartesian system you know from school math. The minimum coordinates (towards negative infinity) are on the left/bottom, the maximum coordinates on right/top (towards positive infinity).
In the following graphic the N stands for the minimum point (minX, minY) and X for the maximum point (maxX, maxY).
+----X | | | | N----+- bug
You can't create your own rectangle that would match the dimensions of
GetWorldBounds. The maxX and maxY will be smaller by32.0than that of the world bounds.- note
See:
RectFromLoc,RemoveRect,GetWorldBounds.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
rect- Source code
native Rect takes real minx, real miny, real maxx, real maxy returns rect