Function truck_modeling::base::algo::surface::presearch [−][src]
pub fn presearch<S>(
surface: &S,
point: <S as ParametricSurface>::Point,
((f64, f64), (f64, f64)),
division: usize
) -> (f64, f64) where
S: ParametricSurface,
<S as ParametricSurface>::Point: MetricSpace,
<S as ParametricSurface>::Point: Copy,
<<S as ParametricSurface>::Point as MetricSpace>::Metric == f64,
Expand description
Divides the domain into equal parts, examines all the values, and returns (u, v)
such that surface.subs(u, v)
is closest to point
.
This method is useful to get an efficient hint of search_nearest_parameter
.