Function truck_modeling::base::algo::curve::search_nearest_parameter
source · pub fn search_nearest_parameter<C>(
curve: &C,
point: <C as ParametricCurve>::Point,
hint: f64,
trials: usize
) -> Option<f64>where
C: ParametricCurve,
<C as ParametricCurve>::Point: EuclideanSpace<Scalar = f64, Diff = <C as ParametricCurve>::Vector>,
<C as ParametricCurve>::Vector: InnerSpace<Scalar = f64> + Tolerance,
Expand description
Searches the nearest parameter by Newton’s method.