transform
Returns a new path, where each point is transformed by the matrix.
Note, if the matrix includes negative scales, this can change the order of the points from anticlockwise to clockwise (a hole). Consider using ensureNotHole or ensureIsHole on the result.