function transformGeom2D(simpleGeometry, transform, dest) {
  const flatCoordinates = simpleGeometry.getFlatCoordinates();
  if (!flatCoordinates) {
    return null;
  }
  const stride = simpleGeometry.getStride();
  return transform2D(
    flatCoordinates,
    0,
    flatCoordinates.length,
    stride,
    transform,
    dest,
  );
}
@param {SimpleGeometry} simpleGeometry Simple geometry.
@param {import("../transform.js").Transform} transform Transform.
@param {Array<number>} [dest] Destination.
@return {Array<number>} Transformed flat coordinates.