Function insert_knot2

pub fn insert_knot2(
    curve: &BSplineCurve<DVec2>,
    parameter: f64,
) -> Result<BSplineCurve<DVec2>, GeomError>
Expand description

Insert one interior knot into a planar curve in homogeneous coordinates.

The represented rational or polynomial curve is unchanged. Endpoint knots and knots whose multiplicity already reaches the degree are rejected.