In order to get the center coordinates, you need to know what you already have. You have the two edges in both X and Y direction (Min and Max values).
The center will just be the following:
That will result as
The center will just be the following:
PHP Code:
new Float:centerx = (minx + maxx) / 2.0;
new Float:centery = (miny + maxy) / 2.0;
That will result as
PHP Code:
centerx = 1343.679
centery = 2138.5615