How can I get the center of a square? [solved]

how can I get the center of a square?
I have four vertices (vector2f) and I want to obtain the coordinate of the center of the square.

1 Like

Average the coordinates of the vertices.

1 Like