getCoordinates(right) {
    let flatCoordinates;
    if (right !== undefined) {
      flatCoordinates = this.getOrientedFlatCoordinates().slice();
      orientLinearRings(flatCoordinates, 0, this.ends_, this.stride, right);
    } else {
      flatCoordinates = this.flatCoordinates;
    }

    return inflateCoordinatesArray(flatCoordinates, 0, this.ends_, this.stride);
  }
Get the coordinate array for this geometry.  This array has the structure
of a GeoJSON coordinate array for polygons.

@param {boolean} [right] Orient coordinates according to the right-hand
    rule (counter-clockwise for exterior and clockwise for interior rings).
    If `false`, coordinates will be oriented according to the left-hand rule
    (clockwise for exterior and counter-clockwise for interior rings).
    By default, coordinate orientation will depend on how the geometry was
    constructed.
@return {Array<Array<import("../coordinate.js").Coordinate>>} Coordinates.
@api
@override