pub struct CartesianClosestPoints;Expand description
The Cartesian closest-points kernel.
Mirrors the registration in
boost/geometry/strategies/cartesian/closest_points_*.hpp. Carries
no state — every per-pair computation is parameter-less.
Trait Implementations§
Source§impl Clone for CartesianClosestPoints
impl Clone for CartesianClosestPoints
Source§fn clone(&self) -> CartesianClosestPoints
fn clone(&self) -> CartesianClosestPoints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P> ClosestPointsStrategy<Linestring<P>, Linestring<P>> for CartesianClosestPointswhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<P> ClosestPointsStrategy<Linestring<P>, Linestring<P>> for CartesianClosestPointswhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Source§fn closest_points(
&self,
a: &Linestring<P>,
b: &Linestring<P>,
) -> (Self::Out, Self::Out)
fn closest_points( &self, a: &Linestring<P>, b: &Linestring<P>, ) -> (Self::Out, Self::Out)
Return
(pa, pb) where pa lies on a, pb lies on b, and
the distance |pa − pb| is minimal over the two geometries. Read moreSource§impl<P> ClosestPointsStrategy<P, Segment<P>> for CartesianClosestPointswhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<P> ClosestPointsStrategy<P, Segment<P>> for CartesianClosestPointswhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
Source§impl<T, const D: usize, Cs> ClosestPointsStrategy<Point<T, D, Cs>, Point<T, D, Cs>> for CartesianClosestPointswhere
T: CoordinateScalar,
Cs: CoordinateSystem,
Cs::Family: SameAs<CartesianFamily>,
Point<T, D, Cs>: PointMut + Default + Copy,
impl<T, const D: usize, Cs> ClosestPointsStrategy<Point<T, D, Cs>, Point<T, D, Cs>> for CartesianClosestPointswhere
T: CoordinateScalar,
Cs: CoordinateSystem,
Cs::Family: SameAs<CartesianFamily>,
Point<T, D, Cs>: PointMut + Default + Copy,
Source§fn closest_points(
&self,
a: &ModelPoint<T, D, Cs>,
b: &ModelPoint<T, D, Cs>,
) -> (Self::Out, Self::Out)
fn closest_points( &self, a: &ModelPoint<T, D, Cs>, b: &ModelPoint<T, D, Cs>, ) -> (Self::Out, Self::Out)
Return
(pa, pb) where pa lies on a, pb lies on b, and
the distance |pa − pb| is minimal over the two geometries. Read moreSource§impl<P> ClosestPointsStrategy<Segment<P>, Segment<P>> for CartesianClosestPointswhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl<P> ClosestPointsStrategy<Segment<P>, Segment<P>> for CartesianClosestPointswhere
P: Point<Scalar = f64> + PointMut + Default + Copy,
<P::Cs as CoordinateSystem>::Family: SameAs<CartesianFamily>,
impl Copy for CartesianClosestPoints
Source§impl Debug for CartesianClosestPoints
impl Debug for CartesianClosestPoints
Source§impl Default for CartesianClosestPoints
impl Default for CartesianClosestPoints
Source§fn default() -> CartesianClosestPoints
fn default() -> CartesianClosestPoints
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CartesianClosestPoints
impl RefUnwindSafe for CartesianClosestPoints
impl Send for CartesianClosestPoints
impl Sync for CartesianClosestPoints
impl Unpin for CartesianClosestPoints
impl UnsafeUnpin for CartesianClosestPoints
impl UnwindSafe for CartesianClosestPoints
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more