transformAbsolutePoint = (matrix, x, y) => {
  const newX = matrix[0] * x + matrix[2] * y + matrix[4];
  const newY = matrix[1] * x + matrix[3] * y + matrix[5];
  return [newX, newY];
}
@param {ReadonlyArray<number>} matrix
@param {number} x
@param {number} y
@returns {[number, number]}