29.09.2013, 18:10
It's easy. Save the coordinates of the right bottom side of the gangzone's square and the right top side of it. The bottom left coordinates will be minx & miny, the top right coordinates will be maxx & maxy.
Like that:
--------------+
| |
| |
| |
*--------------
* is the place where you get minx & miny
+ is the place where you get maxx & maxy.
Like that:
--------------+
| |
| |
| |
*--------------
* is the place where you get minx & miny
+ is the place where you get maxx & maxy.