The point halfway between the left and right and the top and bottom edges of the rectangle described by the given point (which is interpreted as the top-left corner) and this size.
See also Rect.center.
Source
Point center(Point origin) => new Point(origin.x + width / 2.0, origin.y + height / 2.0);