Point bottomCenter(Point origin)

The point at the center of the bottom edge of the rectangle described by the given point (which is interpreted as the top-left corner) and this size.

See also Rect.bottomLeft.

Source

Point bottomCenter(Point origin) => new Point(origin.x + width / 2.0, origin.y + height);