function apply(transform, coordinate) {
  const x = coordinate[0];
  const y = coordinate[1];
  coordinate[0] = transform[0] * x + transform[2] * y + transform[4];
  coordinate[1] = transform[1] * x + transform[3] * y + transform[5];
  return coordinate;
}
Transforms the given coordinate with the given transform returning the
resulting, transformed coordinate. The coordinate will be modified in-place.

@param {Transform} transform The transformation.
@param {import("./coordinate.js").Coordinate|import("./pixel.js").Pixel} coordinate The coordinate to transform.
@return {import("./coordinate.js").Coordinate|import("./pixel.js").Pixel} return coordinate so that operations can be
    chained together.