Function tiny_skia::path_geometry::chop_cubic_at_y_extrema
source ยท pub fn chop_cubic_at_y_extrema(src: &[Point; 4], dst: &mut [Point; 10]) -> usize
Expand description
Given 4 points on a cubic bezier, chop it into 1, 2, 3 beziers such that the resulting beziers are monotonic in Y.
This is called by the scan converter.
Depending on what is returned, dst[] is treated as follows:
- 0: dst[0..3] is the original cubic
- 1: dst[0..3] and dst[3..6] are the two new cubics
- 2: dst[0..3], dst[3..6], dst[6..9] are the three new cubics