Skip to main content

evaluate_rational

Function evaluate_rational 

Source
pub fn evaluate_rational<P: Blend>(
    knots: &KnotVector,
    control: &[Weighted<P>],
    u: f64,
    tol: Tolerances,
) -> OgeomResult<P>
Expand description

Evaluate a rational B-spline: de Boor in homogeneous coordinates, then divide through by the weight.

ยงErrors

As evaluate, plus OgeomError::Numeric if the accumulated weight vanishes, which positive input weights make impossible.