Trait truck_modeling::base::SearchNearestParameter
source · pub trait SearchNearestParameter<Dim>where
Dim: SPDimension,{
type Point;
fn search_nearest_parameter<H>(
&self,
point: Self::Point,
hint: H,
trial: usize
) -> Option<<Dim as SPDimension>::Parameter>
where
H: Into<<Dim as SPDimension>::Hint>;
}
Expand description
Search parameter t
such that self.subs(t)
is nearest point.
Required Associated Types§
Required Methods§
sourcefn search_nearest_parameter<H>(
&self,
point: Self::Point,
hint: H,
trial: usize
) -> Option<<Dim as SPDimension>::Parameter>where
H: Into<<Dim as SPDimension>::Hint>,
fn search_nearest_parameter<H>(
&self,
point: Self::Point,
hint: H,
trial: usize
) -> Option<<Dim as SPDimension>::Parameter>where
H: Into<<Dim as SPDimension>::Hint>,
Search nearest parameter t
such that self.subs(t)
is nearest point.
Returns None
if could not find such parameter.
Implementations on Foreign Types§
source§impl<'a, Dim, T> SearchNearestParameter<Dim> for &'a Twhere
Dim: SPDimension,
T: SearchNearestParameter<Dim>,
impl<'a, Dim, T> SearchNearestParameter<Dim> for &'a Twhere
Dim: SPDimension,
T: SearchNearestParameter<Dim>,
type Point = <T as SearchNearestParameter<Dim>>::Point
fn search_nearest_parameter<H>(
&self,
point: <&'a T as SearchNearestParameter<Dim>>::Point,
hint: H,
trial: usize
) -> Option<<Dim as SPDimension>::Parameter>where
H: Into<<Dim as SPDimension>::Hint>,
source§impl<Dim, T> SearchNearestParameter<Dim> for Box<T, Global>where
Dim: SPDimension,
T: SearchNearestParameter<Dim>,
impl<Dim, T> SearchNearestParameter<Dim> for Box<T, Global>where
Dim: SPDimension,
T: SearchNearestParameter<Dim>,
type Point = <T as SearchNearestParameter<Dim>>::Point
fn search_nearest_parameter<H>(
&self,
point: <Box<T, Global> as SearchNearestParameter<Dim>>::Point,
hint: H,
trial: usize
) -> Option<<Dim as SPDimension>::Parameter>where
H: Into<<Dim as SPDimension>::Hint>,
Implementors§
source§impl SearchNearestParameter<D1> for Curve
impl SearchNearestParameter<D1> for Curve
source§impl SearchNearestParameter<D1> for Leader
impl SearchNearestParameter<D1> for Leader
type Point = <PolylineCurve<Point3<f64>> as SearchNearestParameter<D1>>::Point
source§impl<C> SearchNearestParameter<D1> for TrimmedCurve<C>where
C: SearchNearestParameter<D1>,
impl<C> SearchNearestParameter<D1> for TrimmedCurve<C>where
C: SearchNearestParameter<D1>,
type Point = <C as SearchNearestParameter<D1>>::Point
source§impl<C> SearchNearestParameter<D2> for ExtrudedCurve<C, Vector3<f64>>where
C: ParametricCurve3D + BoundedCurve,
impl<C> SearchNearestParameter<D2> for ExtrudedCurve<C, Vector3<f64>>where
C: ParametricCurve3D + BoundedCurve,
source§impl<C> SearchNearestParameter<D2> for RevolutedCurve<C>where
C: ParametricCurve3D + BoundedCurve,
impl<C> SearchNearestParameter<D2> for RevolutedCurve<C>where
C: ParametricCurve3D + BoundedCurve,
source§impl<C, S> SearchNearestParameter<D1> for IntersectionCurve<C, S>where
C: ParametricCurve3D + SearchNearestParameter<D1, Point = Point3<f64>>,
S: ParametricSurface3D + SearchNearestParameter<D2, Point = Point3<f64>>,
impl<C, S> SearchNearestParameter<D1> for IntersectionCurve<C, S>where
C: ParametricCurve3D + SearchNearestParameter<D1, Point = Point3<f64>>,
S: ParametricSurface3D + SearchNearestParameter<D2, Point = Point3<f64>>,
Only derive from leading curve. Not precise.