function scale(transform, x, y) {
  return multiply(transform, set(tmp_, x, 0, 0, y, 0, 0));
}
Applies scale to a given transform.
@param {!Transform} transform Transform.
@param {number} x Scale factor x.
@param {number} y Scale factor y.
@return {!Transform} The scaled transform.