I do not know how exactly is called. Suppose there is a rectangle of this type:

How to determine his center? Decartian coordinate system, the coordinates of each vertex are known (x, y). Or tell me which way smoking.

## Answer 1, Authority 100%

must work for any parallelepiped:

```
xc = average (x0, x1, x2, x3)
yc = average (y0, y1, y2, y3)
```

Even 2 opposite vertices are sufficient:

```
xc = average (x0, x1)
YC = Average (Y0, Y1)
```