Skip to main content

y_subsegment

Function y_subsegment 

Source
pub fn y_subsegment(c: CubicBez, y0: f64, y1: f64) -> CubicBez
Expand description

Restricts a Bézier curve to a vertical range.

The input curve should be monotonic in y, and its range should include y0 and y1 (which should be ordered).