Trait truck_geometry::base::SearchParameter
source · pub trait SearchParameter<Dim>where
Dim: SPDimension,{
type Point;
fn search_parameter<H>(
&self,
point: Self::Point,
hint: H,
trials: usize
) -> Option<<Dim as SPDimension>::Parameter>
where
H: Into<<Dim as SPDimension>::Hint>;
}
Expand description
Search parameter t
such that self.subs(t)
is near point.
Required Associated Types§
Required Methods§
sourcefn search_parameter<H>(
&self,
point: Self::Point,
hint: H,
trials: usize
) -> Option<<Dim as SPDimension>::Parameter>where
H: Into<<Dim as SPDimension>::Hint>,
fn search_parameter<H>(
&self,
point: Self::Point,
hint: H,
trials: usize
) -> Option<<Dim as SPDimension>::Parameter>where
H: Into<<Dim as SPDimension>::Hint>,
Search parameter t
such that self.subs(t)
is near point.
Returns None
if could not find such parameter.