pub trait DestinationStrategy<P: Point> {
type Output: Point;
// Required method
fn destination(
&self,
origin: &P,
bearing: f64,
distance: f64,
) -> Self::Output;
}Expand description
Strategy computing the endpoint reached from a point, bearing, and distance.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<P> DestinationStrategy<P> for Haversinewhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>,
Available on crate feature std only.
impl<P> DestinationStrategy<P> for Haversinewhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>,
Available on crate feature
std only.Source§impl<P> DestinationStrategy<P> for KarneyDirectwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>,
Available on crate feature std only.
impl<P> DestinationStrategy<P> for KarneyDirectwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>,
Available on crate feature
std only.Source§impl<P> DestinationStrategy<P> for Rhumbwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits + CoordinateSystem,
<P::Cs as CoordinateSystem>::Family: RhumbFamily,
impl<P> DestinationStrategy<P> for Rhumbwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits + CoordinateSystem,
<P::Cs as CoordinateSystem>::Family: RhumbFamily,
Source§impl<P> DestinationStrategy<P> for ThomasDirectwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>,
Available on crate feature std only.
impl<P> DestinationStrategy<P> for ThomasDirectwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>,
Available on crate feature
std only.Source§impl<P> DestinationStrategy<P> for VincentyDirectwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>,
Available on crate feature std only.
impl<P> DestinationStrategy<P> for VincentyDirectwhere
P: Point<Scalar = f64>,
P::Cs: HasAngularUnits,
<P::Cs as CoordinateSystem>::Family: SameAs<GeographicFamily>,
Available on crate feature
std only.