function getCenter(extent) {
  return [(extent[0] + extent[2]) / 2, (extent[1] + extent[3]) / 2];
}
Get the center coordinate of an extent.
@param {Extent} extent Extent.
@return {import("./coordinate.js").Coordinate} Center.
@api