Skip to main content

flatten_quad

Function flatten_quad 

Source
fn flatten_quad(
    p0: Vec2,
    p1: Vec2,
    p2: Vec2,
    tolerance: f32,
    out: &mut Vec<Vec2>,
)
Expand description

Adaptive flattening of a quadratic Bezier. Subdivides until the control point is within tolerance of the chord.