Parameters
- transform
- A AffineMatrix, which must be applied to the path before flattening of the path.
- flatness
- Specifies the maximum permitted error between the curve and its flattened approximation. A value of 0.25 is the default. Reducing the flatness value will increase the number of line segments in the approximation.