Trait kurbo::ParamCurveDeriv
source · pub trait ParamCurveDeriv {
type DerivResult: ParamCurve;
fn deriv(&self) -> Self::DerivResult;
fn gauss_arclen(&self, coeffs: &[(f64, f64)]) -> f64 { ... }
}
Expand description
A differentiable parametrized curve.
Required Associated Types§
type DerivResult: ParamCurve
Required Methods§
sourcefn deriv(&self) -> Self::DerivResult
fn deriv(&self) -> Self::DerivResult
The derivative of the curve.
Provided Methods§
sourcefn gauss_arclen(&self, coeffs: &[(f64, f64)]) -> f64
fn gauss_arclen(&self, coeffs: &[(f64, f64)]) -> f64
Estimate arclength using Gaussian quadrature.
The coefficients are assumed to cover the range (-1..1), which is traditional.