The coordinates of the square area are: 
How to determine the coordinates of the center of this area?
The coordinates of the square area are: 
How to determine the coordinates of the center of this area?
If we take the coordinates of the upper left point for (x1, y1), and the lower right for (x2, y2), then the coordinates of the center:
(x1 + (x2 - x1) / 2, y2 + (y1 - y2) / 2) Source: https://ru.stackoverflow.com/questions/605304/
All Articles